chore(deps): update npm dependencies (#12) #121
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
name: Run Tests | |
on: | |
push: | |
branches: ['*'] | |
pull_request: | |
branches: ['*'] | |
workflow_dispatch: | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: | | |
rm package-lock.json | |
npm install | |
- name: Run unit tests | |
run: npm test | |
tests-e2e: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
testtype: [e2e-local, e2e-remote] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: | | |
rm package-lock.json | |
npm install | |
- name: Build project | |
run: npm run build | |
- name: Run browser tests | |
uses: cypress-io/github-action@v6 | |
with: | |
command: make test:${{ matrix.testtype }} | |
- name: Upload Cypress screenshots | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: cypress-screenshots-${{ matrix.testtype }} | |
path: cypress/screenshots |