-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (45 loc) · 1.18 KB
/
Copy pathci.yml
File metadata and controls
57 lines (45 loc) · 1.18 KB
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
name: CI
on:
pull_request:
branches:
- master
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
node-version: "22.x"
jobs:
test:
name: Test
runs-on: ubuntu-24.04
steps:
- name: Check out repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ env.node-version }}
cache: yarn
cache-dependency-path: "**/yarn.lock"
- name: Install deps
run: yarn install --prefer-offline --frozen-lockfile
- name: Cache node_modules
uses: actions/cache@v5
id: cache-node-modules
with:
path: node_modules
key: node-modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
node-modules-${{ runner.os }}-
- name: Codegen & check
run: ./bin/codegen-check.sh
- name: Build
run: yarn build
- name: Lint
run: yarn lint
- name: Format check
run: yarn prettier . --list-different
- name: Test
run: yarn test:once