diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..effff80 --- /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: [ 20.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