Skip to content

Commit

Permalink
ci: add test plan for all targets
Browse files Browse the repository at this point in the history
  • Loading branch information
grdsdev committed Apr 3, 2024
1 parent a3bec4f commit d33cbd8
Show file tree
Hide file tree
Showing 16 changed files with 372 additions and 11 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/functions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Functions

on:
pull_request:
paths:
- "Sources/Functions/**"
- "Tests/Functions/**"
- ".github/workflows/functions.yml"
push:
branches:
- main
paths:
- "Sources/Functions/**"
- "Tests/Functions/**"
- ".github/workflows/functions.yml"

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Test Functions
strategy:
fail-fast: false
matrix:
platform:
- macOS
- macOS,variant=Mac Catalyst
- iOS Simulator,name=iPhone 15 Pro
- tvOS Simulator,name=Apple TV
- watchOS Simulator,name=Apple Watch Series 9 (41mm)
- visionOS Simulator,name=Any visionOS Simulator Device
runs-on: macos-14
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Select Xcode 15.3
run: sudo xcode-select -s /Applications/Xcode_15.3.app
- name: Run tests
run: PLATFORM="${{ matrix.platform }}" SCHEME=Functions make test-library
42 changes: 42 additions & 0 deletions .github/workflows/postgrest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: PostgREST

on:
pull_request:
paths:
- "Sources/PostgREST/**"
- "Tests/PostgREST/**"
- ".github/workflows/postgrest.yml"
push:
branches:
- main
paths:
- "Sources/PostgREST/**"
- "Tests/PostgREST/**"
- ".github/workflows/postgrest.yml"

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Test PostgREST
strategy:
fail-fast: false
matrix:
platform:
- macOS
- macOS,variant=Mac Catalyst
- iOS Simulator,name=iPhone 15 Pro
- tvOS Simulator,name=Apple TV
- watchOS Simulator,name=Apple Watch Series 9 (41mm)
- visionOS Simulator,name=Any visionOS Simulator Device
runs-on: macos-14
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Select Xcode 15.3
run: sudo xcode-select -s /Applications/Xcode_15.3.app
- name: Run tests
run: PLATFORM="${{ matrix.platform }}" SCHEME=PostgREST make test-library
42 changes: 42 additions & 0 deletions .github/workflows/realtime.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Realtime

on:
pull_request:
paths:
- "Sources/Realtime/**"
- "Tests/Realtime/**"
- ".github/workflows/realtime.yml"
push:
branches:
- main
paths:
- "Sources/Realtime/**"
- "Tests/Realtime/**"
- ".github/workflows/realtime.yml"

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Test Realtime
strategy:
fail-fast: false
matrix:
platform:
- macOS
- macOS,variant=Mac Catalyst
- iOS Simulator,name=iPhone 15 Pro
- tvOS Simulator,name=Apple TV
- watchOS Simulator,name=Apple Watch Series 9 (41mm)
- visionOS Simulator,name=Any visionOS Simulator Device
runs-on: macos-14
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Select Xcode 15.3
run: sudo xcode-select -s /Applications/Xcode_15.3.app
- name: Run tests
run: PLATFORM="${{ matrix.platform }}" SCHEME=Realtime make test-library
42 changes: 42 additions & 0 deletions .github/workflows/storage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Storage

on:
pull_request:
paths:
- "Sources/Storage/**"
- "Tests/Storage/**"
- ".github/workflows/storage.yml"
push:
branches:
- main
paths:
- "Sources/Storage/**"
- "Tests/Storage/**"
- ".github/workflows/storage.yml"

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Test Storage
strategy:
fail-fast: false
matrix:
platform:
- macOS
- macOS,variant=Mac Catalyst
- iOS Simulator,name=iPhone 15 Pro
- tvOS Simulator,name=Apple TV
- watchOS Simulator,name=Apple Watch Series 9 (41mm)
- visionOS Simulator,name=Any visionOS Simulator Device
runs-on: macos-14
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Select Xcode 15.3
run: sudo xcode-select -s /Applications/Xcode_15.3.app
- name: Run tests
run: PLATFORM="${{ matrix.platform }}" SCHEME=Storage make test-library
42 changes: 42 additions & 0 deletions .github/workflows/supabase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Supabase

on:
pull_request:
paths:
- "Sources/Supabase/**"
- "Tests/Supabase/**"
- ".github/workflows/supabase.yml"
push:
branches:
- main
paths:
- "Sources/Supabase/**"
- "Tests/Supabase/**"
- ".github/workflows/supabase.yml"

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Test Supabase
strategy:
fail-fast: false
matrix:
platform:
- macOS
- macOS,variant=Mac Catalyst
- iOS Simulator,name=iPhone 15 Pro
- tvOS Simulator,name=Apple TV
- watchOS Simulator,name=Apple Watch Series 9 (41mm)
- visionOS Simulator,name=Any visionOS Simulator Device
runs-on: macos-14
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Select Xcode 15.3
run: sudo xcode-select -s /Applications/Xcode_15.3.app
- name: Run tests
run: PLATFORM="${{ matrix.platform }}" SCHEME=Supabase make test-library
9 changes: 7 additions & 2 deletions .swiftpm/xcode/xcshareddata/xcschemes/Functions.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,13 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
shouldUseLaunchSchemeArgsEnv = "YES">
<TestPlans>
<TestPlanReference
reference = "container:Functions.xctestplan"
default = "YES">
</TestPlanReference>
</TestPlans>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand Down
9 changes: 7 additions & 2 deletions .swiftpm/xcode/xcshareddata/xcschemes/PostgREST.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,13 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
shouldUseLaunchSchemeArgsEnv = "YES">
<TestPlans>
<TestPlanReference
reference = "container:PostgREST.xctestplan"
default = "YES">
</TestPlanReference>
</TestPlans>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand Down
9 changes: 7 additions & 2 deletions .swiftpm/xcode/xcshareddata/xcschemes/Realtime.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,13 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
shouldUseLaunchSchemeArgsEnv = "YES">
<TestPlans>
<TestPlanReference
reference = "container:Realtime.xctestplan"
default = "YES">
</TestPlanReference>
</TestPlans>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand Down
9 changes: 7 additions & 2 deletions .swiftpm/xcode/xcshareddata/xcschemes/Storage.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,13 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
shouldUseLaunchSchemeArgsEnv = "YES">
<TestPlans>
<TestPlanReference
reference = "container:Storage.xctestplan"
default = "YES">
</TestPlanReference>
</TestPlans>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand Down
6 changes: 3 additions & 3 deletions .swiftpm/xcode/xcshareddata/xcschemes/Supabase.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
shouldUseLaunchSchemeArgsEnv = "YES">
<TestPlans>
<TestPlanReference
reference = "container:AllTests.xctestplan"
default = "YES">
reference = "container:IntegrationTests.xctestplan">
</TestPlanReference>
<TestPlanReference
reference = "container:IntegrationTests.xctestplan">
reference = "container:Supabase.xctestplan"
default = "YES">
</TestPlanReference>
</TestPlans>
</TestAction>
Expand Down
23 changes: 23 additions & 0 deletions Functions.xctestplan
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"configurations" : [
{
"id" : "C2968060-7062-4A69-B936-4DF46F4A933D",
"name" : "Test Scheme Action",
"options" : {

}
}
],
"defaultOptions" : {
},
"testTargets" : [
{
"target" : {
"containerPath" : "container:",
"identifier" : "FunctionsTests",
"name" : "FunctionsTests"
}
}
],
"version" : 1
}
24 changes: 24 additions & 0 deletions PostgREST.xctestplan
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"configurations" : [
{
"id" : "B9D59B72-C47A-432C-80B7-898C5D95FC0D",
"name" : "Configuration 1",
"options" : {

}
}
],
"defaultOptions" : {

},
"testTargets" : [
{
"target" : {
"containerPath" : "container:",
"identifier" : "PostgRESTTests",
"name" : "PostgRESTTests"
}
}
],
"version" : 1
}
24 changes: 24 additions & 0 deletions Realtime.xctestplan
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"configurations" : [
{
"id" : "6C13CD34-2158-4CD9-A3C5-F634B9026E15",
"name" : "Configuration 1",
"options" : {

}
}
],
"defaultOptions" : {

},
"testTargets" : [
{
"target" : {
"containerPath" : "container:",
"identifier" : "RealtimeTests",
"name" : "RealtimeTests"
}
}
],
"version" : 1
}
24 changes: 24 additions & 0 deletions Storage.xctestplan
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"configurations" : [
{
"id" : "79A4DDA5-0CB7-40BC-A6AF-39E351546C2B",
"name" : "Configuration 1",
"options" : {

}
}
],
"defaultOptions" : {

},
"testTargets" : [
{
"target" : {
"containerPath" : "container:",
"identifier" : "StorageTests",
"name" : "StorageTests"
}
}
],
"version" : 1
}
Loading

0 comments on commit d33cbd8

Please sign in to comment.