-
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.27 KB
/
ios.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
name: iOS Test Suite
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: Run tests with fastlane
runs-on: macos-15
outputs:
xcresult_path: ${{ steps.fastlane-ios-tests.outputs.xcresult_path }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install tools
run: |
brew bundle install
bundler install
- name: Set up xcconfig secrets (see README.md#quick-start)
env:
BIKE_INDEX_DEVELOPMENT_XCCONFIG: ${{ secrets.BIKE_INDEX_DEVELOPMENT_XCCONFIG }}
run: |
echo "$BIKE_INDEX_DEVELOPMENT_XCCONFIG" >> BikeIndex-development.xcconfig
- name: List available simulators
run: xcodebuild -scheme Debug\ \(development\) -project BikeIndex.xcodeproj -showdestinations
- name: Run tests
id: fastlane-ios-tests
run: |
bundle exec fastlane ios tests
bundle exec fastlane run lane_context SCAN_GENERATED_XCRESULT_PATH >> $XCRESULT_PATH
echo "xcresult_path=$XCRESULT_PATH" >> "$GITHUB_OUTPUT"
- name: Upload xcresult
uses: actions/upload-artifact@v4
with:
name: TestResult.xcresult
path: ${{ needs.fastlane-ios-tests.outputs.xcresult_path }}