-
-
Notifications
You must be signed in to change notification settings - Fork 32
100 lines (84 loc) · 2.87 KB
/
ci.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: Continuous Integration
on:
pull_request:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
ci:
name: CI
permissions: write-all
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/[email protected]
with:
version: 8.x.x
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Start Supabase
uses: nick-fields/retry@v3
with:
max_attempts: 3
timeout_minutes: 5
retry_on: error
command: pnpm supabase start -x edge-runtime,logflare,vector,studio,imgproxy,pgadmin-schema-diff,migra,postgres-meta
- name: 🦺 Check Format and Lint
id: static
run: pnpm run check
- name: 📦 Build Packages
id: build
run: pnpm run build:packages
- name: 🚧 Test
id: test
run: pnpm turbo run test --concurrency=1
- name: Upload postgrest-core coverage
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./packages/postgrest-core/coverage/coverage-final.json
flags: postgrest-core
- name: Upload postgrest-react-query coverage
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./packages/postgrest-react-query/coverage/coverage-final.json
flags: postgrest-react-query
- name: Upload postgrest-swr coverage
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./packages/postgrest-swr/coverage/coverage-final.json
flags: postgrest-swr
- name: Upload storage-core coverage
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./packages/storage-core/coverage/coverage-final.json
flags: storage-core
- name: Upload storage-swr coverage
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./packages/storage-swr/coverage/coverage-final.json
flags: storage-swr
- name: Upload storage-react-query coverage
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./packages/storage-react-query/coverage/coverage-final.json
flags: storage-react-query
- name: Upload postgrest-server coverage
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./packages/postgrest-server/coverage/coverage-final.json
flags: postgrest-server