-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 875 Bytes
/
ci.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
name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
lint:
name: Check for build and type issues
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: install node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Cache Node modules
uses: actions/cache@v3
with:
path: ~/.npm # Cache the npm cache directory
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Install dependencies
run: npm ci
- name: Run check
run: npm run check && npm run lint:check && npm run format:check
# ensure build works
- name: Run build
run: npm run build