Skip to content

chore: update GitHub Actions workflows to use latest action versions and improve configurations #1

chore: update GitHub Actions workflows to use latest action versions and improve configurations

chore: update GitHub Actions workflows to use latest action versions and improve configurations #1

Workflow file for this run

name: Multi-Node Testing
on:
pull_request:
push:
branches:
- master
- main
jobs:
test:
name: Test on Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x, 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'
- name: Install dependencies
run: npm ci || npm install
- name: Build
run: npm run build --if-present
- name: Run unit tests
run: npm run test:unit
- name: Set up Git for E2E tests
run: |
git config --global user.email "[email protected]"
git config --global user.name "Test User"
- name: Run E2E tests
run: npm run test:e2e
# Skip E2E tests on older Node.js versions if they're incompatible
continue-on-error: ${{ matrix.node-version != '20.x' }}