Bump the all group across 1 directory with 13 updates #610
Workflow file for this run
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: NPM Tests | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test: | |
name: test - ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
fail-fast: false # don't cancel when one matrix job fails, so we can compare to the others | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Cache npm | |
uses: actions/cache@v4 | |
with: | |
path: .npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install NPM dependencies | |
run: npm ci --cache .npm --prefer-offline | |
- name: Run tests (headless - non-ubuntu) | |
if: "!startsWith(matrix.os, 'ubuntu')" | |
run: npm test | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run tests (headless - ubuntu only) | |
if: startsWith(matrix.os, 'ubuntu') | |
run: xvfb-run -a npm test | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |