-
Notifications
You must be signed in to change notification settings - Fork 4
64 lines (59 loc) · 1.55 KB
/
tacd-webui.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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