-
-
Notifications
You must be signed in to change notification settings - Fork 366
45 lines (35 loc) · 1007 Bytes
/
js_check.yml
File metadata and controls
45 lines (35 loc) · 1007 Bytes
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
name: Check JS
on:
workflow_call:
permissions:
contents: read
jobs:
check_js:
name: Node ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 20
- 22
steps:
- name: Harden Runner
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
with:
egress-policy: audit
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: npm ci -D
- name: Check Style
run: npm run check-formatting
- name: Check Lint
run: npm run lint
- name: Check TypeScript
run: npm run check
- name: Compile Front-end
run: npm run build