docs(contributor): contributors readme action update #222
Workflow file for this run
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: Run tests | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
branches: | |
- main | |
- develop | |
jobs: | |
unit_tests: | |
name: Unit Tests | |
runs-on: macos-12 | |
strategy: | |
matrix: | |
platform: | |
- iOS | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Xcode version | |
uses: maxim-lobanov/[email protected] | |
with: | |
xcode-version: '14' | |
- name: Setup ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7 | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- name: Run UnitTests | |
run: bundle exec fastlane test | |
- name: Archive test artifacts | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: test-artifacts | |
path: | | |
./fastlane/test_output/*.xcresult |