-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.39 KB
/
run-tests.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
40
41
42
43
44
45
46
name: Run Tests
on:
push:
branches: [ develop, master ]
pull_request:
branches: [ develop, master, feature/*, releases/* ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
run_tests:
runs-on: macos-15
env:
FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT: 60
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Pod Install
uses: ./.github/actions/pod-install
- name: Run Tests and Generate Code Coverage Report (.xcresult)
run: bundle exec fastlane cru_shared_lane_run_tests output_directory:fastlane_scan_output_directory result_bundle:true reset_simulator:true should_clear_derived_data:true
- name: Upload Xcode Code Coverage Report to CodeCov
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
xcode: true
xcode_archive_path: /Users/runner/work/godtools-swift/godtools-swift/fastlane_scan_output_directory/GodTools-Production.xcresult
# - name: Archive XCode Logs
# if: always()
# uses: actions/upload-artifact@v4
# with:
# name: xcode-logs
# path: "/Users/runner/Library/Developer/Xcode/DerivedData/Logs/godtools-*/**"