tacd-webui #207
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: latest | |
- 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: latest | |
- 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: | |
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: latest | |
- 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: latest | |
- run: npm ci | |
- run: npm run test |