-
-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (35 loc) · 1006 Bytes
/
main.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
name: CI
on:
pull_request:
branches: [main]
jobs:
ci:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "20.x"
- name: Install dependencies
run: npm ci
## Build
- name: Build
run: npm run build
## Test
- name: Run tests
run: npm run test
- uses: supabase/setup-cli@v1
with:
version: latest
- name: Start Supabase local development setup
run: supabase start
- name: Verify generated types are checked in
run: |
supabase gen types typescript --local > src/typings/supabase.ts
if ! git diff --ignore-space-at-eol --exit-code --quiet src/typings/supabase.ts; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
fi