Skip to content

Commit aaf1126

Browse files
committed
ci lint
1 parent 21ecaf4 commit aaf1126

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,35 @@ on:
88
jobs:
99
test:
1010
runs-on: ubuntu-latest
11-
defaults:
12-
run:
13-
working-directory: ./server
1411

1512
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
1725

1826
- uses: supabase/setup-cli@v1
1927
with:
2028
version: latest
2129

2230
- name: Start Supabase local development setup
31+
working-directory: ./server
2332
run: supabase start
2433

2534
- name: Verify generated types are checked in
35+
working-directory: ./server
2636
run: |
2737
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
2940
echo "Detected uncommitted changes after build. See status below:"
3041
git diff
3142
exit 1

0 commit comments

Comments
 (0)