ci: tacd-webui: use a fixed node version instead of latest #206
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: tacd-webui | |
on: | |
pull_request: | |
paths: | |
- '.github/workflows/tacd-webui.yaml' | |
- 'web/**' | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: '48 20 * * 4' | |
env: | |
# Generating sourcemaps fails with file not found in the autolinker | |
# dependency. Disable building them. We may want to re-think this when | |
# we start using the artifacts generated by the build job. | |
# Having sourcemaps allows us to find the actual source for minified | |
# javascript. | |
GENERATE_SOURCEMAP: false | |
jobs: | |
prettier: | |
name: npx prettier | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: web | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.17.0 | |
- run: npx prettier@=3.3.3 --check . | |
license: | |
name: npx license-checker | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: web | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.17.0 | |
- name: npx license-checker | |
run: > | |
npx license-checker --summary --excludePrivatePackages --onlyAllow | |
"0BSD;Apache-2.0;BSD-2-Clause;BSD-3-Clause;CC-BY-4.0;CC0-1.0;EPL-1.0;ISC;MIT;MPL-2.0;Python-2.0;Unlicense;WTFPL" | |
build: | |
strategy: | |
fail-fast: false # Run against all versions even if one fails | |
matrix: | |
version: | |
- "20.12.2" # Yocto scarthgap | |
- "20.17.0" # Yocto styhead | |
name: npm run build | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: web | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.version }} | |
- run: npm ci | |
- run: npm run build | |
test: | |
name: npm run test | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: web | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.17.0 | |
- run: npm ci | |
- run: npm run test |