From 3c97c85be7266913e6013bace9029cff39c5dff2 Mon Sep 17 00:00:00 2001 From: Harry Vangberg Date: Tue, 17 Dec 2024 11:18:08 +0100 Subject: [PATCH] GitHub Actions CI (#18) --- .github/workflows/test.js.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/test.js.yml diff --git a/.github/workflows/test.js.yml b/.github/workflows/test.js.yml new file mode 100644 index 0000000..10cf4e4 --- /dev/null +++ b/.github/workflows/test.js.yml @@ -0,0 +1,29 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: Test + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [22.x] + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm install + - run: npm test