-
Notifications
You must be signed in to change notification settings - Fork 12
48 lines (40 loc) · 1.22 KB
/
ios_unit_testing.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
47
48
name: iOS Unit Testing
on:
workflow_dispatch:
# Runs at 00:00 UTC every day
schedule:
- cron: "0 0 * * *"
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
test:
if: ${{ vars.IS_IOS_UNIT_TESTING_ENABLED == 'true' }}
name: Run iOS unit tests
runs-on: macos-14
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup CI
id: setup
uses: ./.github/actions/setup-ios
with:
git-crypt-key: ${{ secrets.GIT_CRYPT_KEY }}
- name: Run unit tests
working-directory: "./iosHyperskillApp"
run: bundle exec fastlane run_unit_tests install_pods:false
env:
FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT: 60
IS_GIT_CRYPT_UNLOCKED: ${{ steps.setup.outputs.is-git-crypt-unlocked }}
GITHUB_USER: ${{ github.actor }}
GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload error log
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: iosHyperskillApp-iosHyperskillApp.log
path: /Users/runner/Library/Logs/gym/iosHyperskillApp-iosHyperskillApp.log