Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split CI tasks to build and test #2290

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@ jobs:
xcode: [
'15.2',
'15.3',
'15.4',
'16.0',
]
steps:
- uses: actions/checkout@v4
- name: Install Gems
run: bundle install
- name: Run tests
- name: Build framework
env:
DESTINATION: platform=${{ matrix.destination }}
XCODE_VERSION: ${{ matrix.xcode }}
run: bundle exec fastlane test_ci
run: bundle exec fastlane build_ci
29 changes: 29 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: test

on: [push, pull_request]

jobs:
run-test:
runs-on: self-hosted
continue-on-error: true
strategy:
matrix:
destination: [
'macOS',
'iOS Simulator,name=iPhone 15',
'tvOS Simulator,name=Apple TV',
'watchOS Simulator,name=Apple Watch Series 9 (41mm)'
]
xcode: [
'15.4',
'16.0',
]
steps:
- uses: actions/checkout@v4
- name: Install Gems
run: bundle install
- name: Run tests
env:
DESTINATION: platform=${{ matrix.destination }}
XCODE_VERSION: ${{ matrix.xcode }}
run: bundle exec fastlane test_ci
4 changes: 4 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ platform :ios do
end
end

lane :build_ci do
build(destination: ENV["DESTINATION"])
end

lane :test do |options|
scan(
scheme: "Kingfisher",
Expand Down