Skip to content

Fix: Workflows & Tests #13

Fix: Workflows & Tests

Fix: Workflows & Tests #13

Workflow file for this run

name: Testing
on:
pull_request:
branches:
- master
jobs:
run-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [20, 21, 22, 23]
name: Node ${{ matrix.node-version }}
steps:
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Run tests
run: npm test
- name: Upload Cypress screenshots
if: failure()
uses: actions/upload-artifact@v4
with:
name: cypress-screenshots
path: cypress/screenshots
retention-days: 7
- name: Upload Cypress videos
if: always()
uses: actions/upload-artifact@v4
with:
name: cypress-videos-${{ matrix.node-version }}
path: cypress/videos
retention-days: 7