-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (28 loc) · 882 Bytes
/
supabase_ci.yml
File metadata and controls
36 lines (28 loc) · 882 Bytes
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
name: Supabase Tests
on:
pull_request:
workflow_dispatch:
jobs:
supabase_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: supabase/setup-cli@v1
with:
version: latest
- name: Overwrite Supabase db version
run: |
mkdir -p supabase/.temp
echo "15.8.1.038" > supabase/.temp/postgres-version
- name: Start Supabase local development setup
run: supabase db start
- name: Run Tests
run: supabase test db
- name: Verify generated types are checked in
run: |
supabase gen types typescript --local > types.gen.ts
if ! git diff --ignore-space-at-eol --exit-code --quiet types.gen.ts; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
fi