@@ -28,164 +28,6 @@ jobs:
28
28
token : ${{ github.token }}
29
29
filters : .github/filter.yaml
30
30
31
- install :
32
- runs-on : ubuntu-latest
33
- needs : filter
34
- if : needs.filter.outputs.app == 'true'
35
- outputs :
36
- STORE_PATH : ${{ steps.pnpm-env.outputs.STORE_PATH }}
37
- steps :
38
- - name : checkout
39
- uses : actions/checkout@v4
40
-
41
- - name : setup node
42
- uses : actions/setup-node@v3
43
- with :
44
- node-version-file : " package.json"
45
-
46
- - name : setup pnpm
47
- uses : pnpm/action-setup@v2
48
- with :
49
- run_install : false
50
-
51
- - name : setup pnpm environment variable
52
- id : pnpm-env
53
- run : echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
54
-
55
- - name : cache pnpm dependencies
56
- uses : actions/cache@v3
57
- with :
58
- path : ${{ steps.pnpm-env.outputs.STORE_PATH }}
59
- key : ${{ runner.os }}-pnpm-dependencies-${{ hashFiles('**/pnpm-lock.yaml') }}
60
- restore-keys : ${{ runner.os }}-pnpm-dependencies-
61
-
62
- - name : install dependencies
63
- run : pnpm install --frozen-lockfile
64
-
65
- format :
66
- runs-on : ubuntu-latest
67
- needs : install
68
- steps :
69
- - name : checkout
70
- uses : actions/checkout@v4
71
-
72
- - name : setup node
73
- uses : actions/setup-node@v3
74
- with :
75
- node-version-file : " package.json"
76
-
77
- - name : setup pnpm
78
- uses : pnpm/action-setup@v2
79
- id : pnpm-install
80
- with :
81
- run_install : false
82
-
83
- - name : restore pnpm dependencies
84
- uses : actions/cache/restore@v3
85
- with :
86
- path : ${{ needs.install.outputs.STORE_PATH }}
87
- key : ${{ runner.os }}-pnpm-dependencies-${{ hashFiles('**/pnpm-lock.yaml') }}
88
- restore-keys : ${{ runner.os }}-pnpm-dependencies-
89
-
90
- - name : install dependencies
91
- run : pnpm install --frozen-lockfile
92
-
93
- - name : format
94
- run : pnpm turbo run fmt
95
-
96
- lint :
97
- runs-on : ubuntu-latest
98
- needs : install
99
- steps :
100
- - name : checkout
101
- uses : actions/checkout@v4
102
-
103
- - name : setup node
104
- uses : actions/setup-node@v3
105
- with :
106
- node-version-file : " package.json"
107
-
108
- - name : setup pnpm
109
- uses : pnpm/action-setup@v2
110
- id : pnpm-install
111
- with :
112
- run_install : false
113
-
114
- - name : restore pnpm dependencies
115
- uses : actions/cache/restore@v3
116
- with :
117
- path : ${{ needs.install.outputs.STORE_PATH }}
118
- key : ${{ runner.os }}-pnpm-dependencies-${{ hashFiles('**/pnpm-lock.yaml') }}
119
- restore-keys : ${{ runner.os }}-pnpm-dependencies-
120
-
121
- - name : install
122
- run : pnpm install --frozen-lockfile
123
-
124
- - name : lint
125
- run : pnpm turbo run lint -- --max-warnings=0
126
-
127
- style-lint :
128
- runs-on : ubuntu-latest
129
- needs : install
130
- steps :
131
- - name : checkout
132
- uses : actions/checkout@v4
133
-
134
- - name : setup node
135
- uses : actions/setup-node@v3
136
- with :
137
- node-version-file : " package.json"
138
-
139
- - name : setup pnpm
140
- uses : pnpm/action-setup@v2
141
- id : pnpm-install
142
- with :
143
- run_install : false
144
-
145
- - name : restore pnpm dependencies
146
- uses : actions/cache/restore@v3
147
- with :
148
- path : ${{ needs.install.outputs.STORE_PATH }}
149
- key : ${{ runner.os }}-pnpm-dependencies-${{ hashFiles('**/pnpm-lock.yaml') }}
150
- restore-keys : ${{ runner.os }}-pnpm-dependencies-
151
-
152
- - name : install dependencies
153
- run : pnpm install --frozen-lockfile
154
-
155
- - name : lint styles
156
- run : pnpm turbo run style -- --max-warnings=0
157
-
158
- build :
159
- runs-on : ubuntu-latest
160
- needs : install
161
- steps :
162
- - name : checkout
163
- uses : actions/checkout@v4
164
-
165
- - name : setup node
166
- uses : actions/setup-node@v3
167
- with :
168
- node-version-file : " package.json"
169
-
170
- - name : setup pnpm
171
- uses : pnpm/action-setup@v2
172
- id : pnpm-install
173
- with :
174
- run_install : false
175
-
176
- - name : restore pnpm dependencies
177
- uses : actions/cache/restore@v3
178
- with :
179
- path : ${{ needs.install.outputs.STORE_PATH }}
180
- key : ${{ runner.os }}-pnpm-dependencies-${{ hashFiles('**/pnpm-lock.yaml') }}
181
- restore-keys : ${{ runner.os }}-pnpm-dependencies-
182
-
183
- - name : install dependencies
184
- run : pnpm install --frozen-lockfile
185
-
186
- - name : build
187
- run : pnpm turbo run build
188
-
189
31
test :
190
32
runs-on : ubuntu-latest
191
33
env :
194
36
SUPABASE_AUTH_EXTERNAL_GOOGLE_SECRET : ${{ secrets.SUPABASE_AUTH_EXTERNAL_GOOGLE_SECRET }}
195
37
SUPABASE_AUTH_EXTERNAL_GOOGLE_URL : ${{ secrets.SUPABASE_AUTH_EXTERNAL_GOOGLE_URL }}
196
38
SUPABASE_DB_PASSWORD : ${{ secrets.SUPABASE_DB_PASSWORD }}
197
- needs : [install, build]
39
+ needs : filter
198
40
steps :
199
41
- name : checkout
200
42
uses : actions/checkout@v4
@@ -215,10 +57,14 @@ jobs:
215
57
with :
216
58
run_install : false
217
59
218
- - name : restore pnpm dependencies
219
- uses : actions/cache/restore@v3
60
+ - name : setup pnpm environment variable
61
+ id : pnpm-env
62
+ run : echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
63
+
64
+ - name : cache pnpm dependencies
65
+ uses : actions/cache@v3
220
66
with :
221
- path : ${{ needs.install .outputs.STORE_PATH }}
67
+ path : ${{ steps.pnpm-env .outputs.STORE_PATH }}
222
68
key : ${{ runner.os }}-pnpm-dependencies-${{ hashFiles('**/pnpm-lock.yaml') }}
223
69
restore-keys : ${{ runner.os }}-pnpm-dependencies-
224
70
233
79
234
80
app-test-check :
235
81
runs-on : ubuntu-latest
236
- needs : [format, lint, style-lint, build, test]
82
+ needs : test
237
83
if : ${{ ! failure() }}
238
84
steps :
239
85
- name : check
0 commit comments