-
-
Notifications
You must be signed in to change notification settings - Fork 5
54 lines (41 loc) · 1.16 KB
/
check.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
48
49
50
51
52
53
54
name: Check code, test and build
on: [push]
jobs:
test:
name: Check code, test and build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: "20.4.0"
registry-url: "https://registry.npmjs.org"
- name: Enable Corepack
run: corepack enable
- name: Set Yarn version
run: corepack prepare yarn@3.6.3 --activate
- name: Cache Yarn dependencies
uses: actions/cache@v4
with:
path: |
~/.yarn
.yarn/cache
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: deadCode:check
run: yarn deadCode:check
- name: lint:check
run: yarn lint:check
- name: types:check
run: yarn types:check
- name: format:check
run: yarn format:check
- name: test:check
run: yarn test:check
- name: build
run: yarn build