Skip to content

Commit

Permalink
To save some CI resources
Browse files Browse the repository at this point in the history
  • Loading branch information
onevcat committed Sep 18, 2024
1 parent ea161e0 commit cbef318
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 4 deletions.
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

0 comments on commit cbef318

Please sign in to comment.