Build: Separate Node.js & Browser Tests, update tested Node.js versions #374
Workflow file for this run
This file contains hidden or 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 | |
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 | |
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 |