File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change 8
8
jobs :
9
9
test :
10
10
runs-on : ubuntu-latest
11
- defaults :
12
- run :
13
- working-directory : ./server
14
11
15
12
steps :
16
- - uses : actions/checkout@v3
13
+ - uses : actions/checkout@v4
14
+
15
+ - run : corepack enable
16
+
17
+ - uses : actions/setup-node@v4
18
+ with :
19
+ node-version : 20
20
+ cache : ' pnpm'
21
+
22
+ - run : pnpm install
23
+
24
+ - run : pnpm lint
17
25
18
26
- uses : supabase/setup-cli@v1
19
27
with :
20
28
version : latest
21
29
22
30
- name : Start Supabase local development setup
31
+ working-directory : ./server
23
32
run : supabase start
24
33
25
34
- name : Verify generated types are checked in
35
+ working-directory : ./server
26
36
run : |
27
37
supabase gen types typescript --local > ../types/supabase.ts
28
- if ! git diff --ignore-space-at-eol --exit-code --quiet types.gen.ts; then
38
+ npx prettier --write ../types/supabase.ts
39
+ if ! git diff --ignore-space-at-eol --exit-code --quiet ../types/supabase.ts; then
29
40
echo "Detected uncommitted changes after build. See status below:"
30
41
git diff
31
42
exit 1
You can’t perform that action at this time.
0 commit comments