Files
sphinx/.github/workflows/nodejs.yml
Adam Turner 9298de548f Update CI configuration
- Merge LaTeX and Coverage into the main CI file
- Only run tests when a relevant file changes
- Update ``actions/checkout``
- Set ``-Werror`` only on pytest steps
- Reduce verbosity on the documentation workflow
2023-09-21 09:08:29 +01:00

44 lines
903 B
YAML

name: CI (node.js)
on:
push:
paths:
- ".github/workflows/main.yml"
- "sphinx/themes/**.js"
- "tests/js"
- "karma.conf.js"
- "package.json"
- "package-lock.json"
pull_request:
paths:
- ".github/workflows/main.yml"
- "sphinx/themes/**.js"
- "tests/js"
- "karma.conf.js"
- "package.json"
- "package-lock.json"
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
env:
node-version: "16"
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.node-version }}
cache: "npm"
- run: npm install
- name: Run headless test
run: xvfb-run -a npm test