Skip to content

Commit 603db24

Browse files
authored
ci: break into multiple workflows (#323)
* ci: separate into multiple workflows * ci: run auth workflow if yml changes * ci: platform in quotes * ci: typo * ci: add test plan for all targets * ci: fix concurrency group * chore: run all tests
1 parent 14e68f2 commit 603db24

23 files changed

+601
-129
lines changed

.github/workflows/auth.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Auth
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "Sources/Auth/**"
7+
- "Tests/Auth/**"
8+
- ".github/workflows/auth.yml"
9+
push:
10+
branches:
11+
- main
12+
paths:
13+
- "Sources/Auth/**"
14+
- "Tests/Auth/**"
15+
- ".github/workflows/auth.yml"
16+
17+
concurrency:
18+
group: auth-${{ github.ref }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
test:
23+
name: Test Auth
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
platform:
28+
- macOS
29+
- macOS,variant=Mac Catalyst
30+
- iOS Simulator,name=iPhone 15 Pro
31+
- tvOS Simulator,name=Apple TV
32+
- watchOS Simulator,name=Apple Watch Series 9 (41mm)
33+
- visionOS Simulator,name=Any visionOS Simulator Device
34+
runs-on: macos-14
35+
steps:
36+
- uses: actions/checkout@v3
37+
with:
38+
fetch-depth: 0
39+
- name: Select Xcode 15.3
40+
run: sudo xcode-select -s /Applications/Xcode_15.3.app
41+
- name: Run tests
42+
run: PLATFORM="${{ matrix.platform }}" SCHEME=Auth make test-library

.github/workflows/ci.yml

Lines changed: 0 additions & 70 deletions
This file was deleted.

.github/workflows/functions.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Functions
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "Sources/Functions/**"
7+
- "Tests/Functions/**"
8+
- ".github/workflows/functions.yml"
9+
push:
10+
branches:
11+
- main
12+
paths:
13+
- "Sources/Functions/**"
14+
- "Tests/Functions/**"
15+
- ".github/workflows/functions.yml"
16+
17+
concurrency:
18+
group: functions-${{ github.ref }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
test:
23+
name: Test Functions
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
platform:
28+
- macOS
29+
- macOS,variant=Mac Catalyst
30+
- iOS Simulator,name=iPhone 15 Pro
31+
- tvOS Simulator,name=Apple TV
32+
- watchOS Simulator,name=Apple Watch Series 9 (41mm)
33+
- visionOS Simulator,name=Any visionOS Simulator Device
34+
runs-on: macos-14
35+
steps:
36+
- uses: actions/checkout@v3
37+
with:
38+
fetch-depth: 0
39+
- name: Select Xcode 15.3
40+
run: sudo xcode-select -s /Applications/Xcode_15.3.app
41+
- name: Run tests
42+
run: PLATFORM="${{ matrix.platform }}" SCHEME=Functions make test-library
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Integration Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- release/*
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: integration-tests-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
integration-tests:
16+
runs-on: macos-14
17+
name: Integration Tests
18+
steps:
19+
- uses: actions/checkout@v3
20+
with:
21+
fetch-depth: 0
22+
- name: Select Xcode 15.3
23+
run: sudo xcode-select -s /Applications/Xcode_15.3.app
24+
- name: Run tests
25+
run: make test-integration
26+
env:
27+
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
28+
SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }}
29+
SUPABASE_SERVICE_KEY: ${{ secrets.SUPABASE_SERVICE_KEY }}

.github/workflows/postgrest.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: PostgREST
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "Sources/PostgREST/**"
7+
- "Tests/PostgREST/**"
8+
- ".github/workflows/postgrest.yml"
9+
push:
10+
branches:
11+
- main
12+
paths:
13+
- "Sources/PostgREST/**"
14+
- "Tests/PostgREST/**"
15+
- ".github/workflows/postgrest.yml"
16+
17+
concurrency:
18+
group: postgrest-${{ github.ref }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
test:
23+
name: Test PostgREST
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
platform:
28+
- macOS
29+
- macOS,variant=Mac Catalyst
30+
- iOS Simulator,name=iPhone 15 Pro
31+
- tvOS Simulator,name=Apple TV
32+
- watchOS Simulator,name=Apple Watch Series 9 (41mm)
33+
- visionOS Simulator,name=Any visionOS Simulator Device
34+
runs-on: macos-14
35+
steps:
36+
- uses: actions/checkout@v3
37+
with:
38+
fetch-depth: 0
39+
- name: Select Xcode 15.3
40+
run: sudo xcode-select -s /Applications/Xcode_15.3.app
41+
- name: Run tests
42+
run: PLATFORM="${{ matrix.platform }}" SCHEME=PostgREST make test-library

.github/workflows/realtime.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Realtime
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "Sources/Realtime/**"
7+
- "Tests/Realtime/**"
8+
- ".github/workflows/realtime.yml"
9+
push:
10+
branches:
11+
- main
12+
paths:
13+
- "Sources/Realtime/**"
14+
- "Tests/Realtime/**"
15+
- ".github/workflows/realtime.yml"
16+
17+
concurrency:
18+
group: realtime-${{ github.ref }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
test:
23+
name: Test Realtime
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
platform:
28+
- macOS
29+
- macOS,variant=Mac Catalyst
30+
- iOS Simulator,name=iPhone 15 Pro
31+
- tvOS Simulator,name=Apple TV
32+
- watchOS Simulator,name=Apple Watch Series 9 (41mm)
33+
- visionOS Simulator,name=Any visionOS Simulator Device
34+
runs-on: macos-14
35+
steps:
36+
- uses: actions/checkout@v3
37+
with:
38+
fetch-depth: 0
39+
- name: Select Xcode 15.3
40+
run: sudo xcode-select -s /Applications/Xcode_15.3.app
41+
- name: Run tests
42+
run: PLATFORM="${{ matrix.platform }}" SCHEME=Realtime make test-library

.github/workflows/storage.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Storage
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "Sources/Storage/**"
7+
- "Tests/Storage/**"
8+
- ".github/workflows/storage.yml"
9+
push:
10+
branches:
11+
- main
12+
paths:
13+
- "Sources/Storage/**"
14+
- "Tests/Storage/**"
15+
- ".github/workflows/storage.yml"
16+
17+
concurrency:
18+
group: storage-${{ github.ref }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
test:
23+
name: Test Storage
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
platform:
28+
- macOS
29+
- macOS,variant=Mac Catalyst
30+
- iOS Simulator,name=iPhone 15 Pro
31+
- tvOS Simulator,name=Apple TV
32+
- watchOS Simulator,name=Apple Watch Series 9 (41mm)
33+
- visionOS Simulator,name=Any visionOS Simulator Device
34+
runs-on: macos-14
35+
steps:
36+
- uses: actions/checkout@v3
37+
with:
38+
fetch-depth: 0
39+
- name: Select Xcode 15.3
40+
run: sudo xcode-select -s /Applications/Xcode_15.3.app
41+
- name: Run tests
42+
run: PLATFORM="${{ matrix.platform }}" SCHEME=Storage make test-library

.github/workflows/supabase.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Supabase
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "Sources/Supabase/**"
7+
- "Tests/Supabase/**"
8+
- ".github/workflows/supabase.yml"
9+
push:
10+
branches:
11+
- main
12+
paths:
13+
- "Sources/Supabase/**"
14+
- "Tests/Supabase/**"
15+
- ".github/workflows/supabase.yml"
16+
17+
concurrency:
18+
group: supabase-${{ github.ref }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
test:
23+
name: Test Supabase
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
platform:
28+
- macOS
29+
- macOS,variant=Mac Catalyst
30+
- iOS Simulator,name=iPhone 15 Pro
31+
- tvOS Simulator,name=Apple TV
32+
- watchOS Simulator,name=Apple Watch Series 9 (41mm)
33+
- visionOS Simulator,name=Any visionOS Simulator Device
34+
runs-on: macos-14
35+
steps:
36+
- uses: actions/checkout@v3
37+
with:
38+
fetch-depth: 0
39+
- name: Select Xcode 15.3
40+
run: sudo xcode-select -s /Applications/Xcode_15.3.app
41+
- name: Run tests
42+
run: PLATFORM="${{ matrix.platform }}" SCHEME=Supabase make test-library

0 commit comments

Comments
 (0)