From ec520cfaaf8dafd5c2fa12c0f80ab7ad3725cdfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Birkemeyer?= Date: Wed, 27 Aug 2025 14:18:54 +0000 Subject: [PATCH 1/2] Add GitHub Action for JS Unit Tests --- .github/workflows/tests.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..db932af --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,29 @@ +name: Tests + +on: + push: + branches: [ master ] + pull_request: + pull_request_target: + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + JSUnit: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [ 16.x ] + + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: yarn install --immutable --immutable-cache --check-cache + - run: yarn test From 9fdffae20eb4f4a9cd15df5e6a8b54dd32330856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Birkemeyer?= Date: Wed, 27 Aug 2025 14:20:32 +0000 Subject: [PATCH 2/2] Use correct Node Version Range --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index db932af..effff80 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: - node-version: [ 16.x ] + node-version: [ 20.x ] steps: - uses: actions/checkout@v4