chore(deps-dev): bump eslint from 8.57.0 to 9.15.0 #3337
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: Node CI (PR) | |
on: | |
pull_request: | |
paths-ignore: | |
- "**" | |
- "!**.js" | |
- "!**.cjs" | |
- "!**.json" | |
- "!**.css" | |
- "!**.html" | |
- "!.github/workflows/**" | |
env: | |
PUPPETEER_SKIP_DOWNLOAD: 1 | |
PUPPETEER_EXECUTABLE_PATH: /usr/bin/google-chrome | |
# See https://github.com/speced/respec/pull/3306 | |
LC_ALL: en_US.UTF-8 | |
FORCE_COLOR: 1 | |
permissions: | |
contents: read | |
jobs: | |
lint: | |
name: Check linting issues | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Ensure builds/ has not changed | |
run: | | |
curl -sL https://api.github.com/repos/speced/respec/pulls/${{ github.event.pull_request.number }}/files -o /tmp/pr_files.json | |
cat /tmp/pr_files.json | jq -r '.[].filename' | grep -qE "^builds/" || exit 0 | |
echo "::error::Uh oh! builds/ was changed."; exit 1 | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: { node-version-file: '.nvmrc', cache: pnpm } | |
- run: pnpm i --frozen-lockfile | |
- run: pnpm lint | |
test-headless: | |
name: Headless Tests | |
runs-on: ubuntu-latest | |
needs: lint | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: { node-version-file: '.nvmrc', cache: pnpm } | |
- run: pnpm i --frozen-lockfile | |
- run: pnpm test:build | |
- run: pnpm build:w3c | |
- run: pnpm test:headless | |
test-karma: | |
name: Karma Unit Tests (${{ matrix.browser }}) | |
strategy: | |
matrix: | |
browser: [ChromeHeadless, FirefoxHeadless] | |
runs-on: ubuntu-latest | |
needs: lint | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: { node-version-file: '.nvmrc', cache: pnpm } | |
- run: pnpm i --frozen-lockfile | |
- run: pnpm build:w3c & pnpm build:geonovum | |
- run: pnpm test:unit | |
env: | |
BROWSERS: ${{ matrix.browser }} | |
- run: pnpm test:integration | |
env: | |
BROWSERS: ${{ matrix.browser }} | |
html-validate: | |
name: Validate HTML | |
runs-on: ubuntu-latest | |
needs: lint | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: { node-version-file: '.nvmrc', cache: pnpm } | |
- run: pnpm i --frozen-lockfile | |
- run: pnpm build:w3c | |
- name: run validator | |
run: | | |
vnu=$(node -p "require('vnu-jar')") | |
./tools/respec2html.js examples/basic.built.html /tmp/basic.built.html --verbose --timeout 30 | |
java -jar $vnu /tmp/basic.built.html |