Skip to content

Build: Separate Node.js & Browser Tests, update tested Node.js versions #373

Build: Separate Node.js & Browser Tests, update tested Node.js versions

Build: Separate Node.js & Browser Tests, update tested Node.js versions #373

Workflow file for this run

name: Node

Check failure on line 1 in .github/workflows/node.js.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/node.js.yml

Invalid workflow file

(Line: 17, Col: 11): Unrecognized named-value: 'env'. Located at position 1 within expression: env.NODE_VERSION
on:
pull_request:
push:
branches-ignore: "dependabot/**"
permissions:
contents: read
env:
NODE_VERSION: 22.x
jobs:
build-and-test:
runs-on: ubuntu-latest
name: Build & lint (${{ env.NODE_VERSION }})
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
cache-dependency-path: '**/package-lock.json'
- name: Install npm dependencies
run: npm ci
- name: Build
run: npm run build
# Lint must happen after build as we lint generated files.
- name: Lint
run: npm run lint