Skip to content

chore(deps): updating packages [Modern JS Guild] #3

chore(deps): updating packages [Modern JS Guild]

chore(deps): updating packages [Modern JS Guild] #3

Workflow file for this run

name: Node.js CI
name: Run Tests

Check failure on line 2 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

You have an error in your yaml syntax on line 2
on:
pull_request:
branches:
- 'main'
push:
branches:
- main
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- name: Set display
run: export DISPLAY=:99.0
- name: Run headless tests
run: xvfb-run --auto-servernum npm test