Merge pull request #1136 from rodekruis/elwinschmitz-patch-1 #1602
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# More information on Static Web App workflow configurations, | |
# See: https://aka.ms/swaworkflowconfig | |
# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions | |
name: 'Tests' | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, synchronize, reopened] | |
branches: | |
- main | |
- develop | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: ['20', '22'] | |
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node.js version | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
- name: Install | |
env: | |
HUSKY: 0 | |
run: npm ci --no-fund --no-audit | |
- name: Run Tests | |
run: npm test |