-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 980 Bytes
/
lint.yml
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
name: Lint
on:
merge_group:
push:
branches:
- main
- dependencies
pull_request:
branches:
- main
- dependencies
types:
- opened
- edited
- synchronize
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out git repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".tool-versions"
cache: "npm"
cache-dependency-path: |
dev-client/package-lock.json
- name: Install Node dependencies
working-directory: ./dev-client
run: npm ci
- name: Lint JavaScript
working-directory: ./dev-client
run: npm run lint
- name: Typecheck TypeScript
working-directory: ./dev-client
run: npm run check-ts
- name: Check NPM module usage
working-directory: ./dev-client
run: npm run check-modules