iOS Unit Testing #449
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |