File tree 2 files changed +33
-39
lines changed
2 files changed +33
-39
lines changed Original file line number Diff line number Diff line change
1
+ name : Lint
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ pull_request :
7
+ jobs :
8
+ lint :
9
+ runs-on : buildjet-4vcpu-ubuntu-2204
10
+ container :
11
+ image : node:22
12
+ steps :
13
+ - name : Checkout
14
+ uses : actions/checkout@v4
15
+ - name : pnpm setup
16
+ uses : pnpm/action-setup@v4
17
+ - name : pnpm Cache
18
+ uses : buildjet/cache@v4
19
+ with :
20
+ path : |
21
+ ~/.pnpm-store
22
+ node_modules
23
+ */*/node_modules
24
+ key : ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
25
+ restore-keys : |
26
+ ${{ runner.os }}-pnpm-
27
+ - name : Install packages
28
+ if : steps.pnpm-cache.outputs.cache-hit != 'true'
29
+ run : pnpm install --frozen-lockfile
30
+ - name : Run Lint
31
+ run : pnpm lint
32
+ env :
33
+ SKIP_ENV_VALIDATION : true
Original file line number Diff line number Diff line change 48
48
49
49
- name : Run Build
50
50
run : pnpm build
51
-
52
- lint :
53
- runs-on : buildjet-4vcpu-ubuntu-2204
54
- needs : [build]
55
- container :
56
- image : node:22
57
- steps :
58
- - name : Checkout
59
- uses : actions/checkout@v4
60
-
61
- - name : Setup pnpm
62
- run : |
63
- corepack enable
64
- corepack prepare [email protected] --activate
65
-
66
- - name : Restore dependencies
67
- uses : buildjet/cache@v4
68
- with :
69
- path : |
70
- ~/.pnpm-store
71
- node_modules
72
- */*/node_modules
73
- key : ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
74
-
75
- - name : turborepo Cache
76
- uses : buildjet/cache@v4
77
- with :
78
- path : |
79
- .turbo
80
- key : ${{ runner.os }}-turbo-${{ github.sha }}
81
- restore-keys : |
82
- ${{ runner.os }}-turbo-
83
-
84
- - name : Run Build
85
- run : pnpm build
86
-
87
- - name : Run Lint
88
- run : pnpm lint
89
-
90
51
test :
91
52
runs-on : buildjet-4vcpu-ubuntu-2204
92
53
needs : [build]
You can’t perform that action at this time.
0 commit comments