Update CI workflow #81
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: CI | |
on: | |
pull_request: | |
workflow_dispatch: | |
env: | |
DEVELOPER_DIR: /Applications/Xcode_13.2.1.app/Contents/Developer | |
jobs: | |
test: | |
name: "Test" | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Check cache for Bundler dependencies | |
uses: actions/cache@v2 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-gems- | |
- name: Run bundle install | |
run: | | |
bundle config path vendor/bundle | |
bundle install | |
- name: Check cache for Swift Package Manager dependencies | |
uses: actions/cache@v2 | |
with: | |
path: .build | |
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} | |
restore-keys: | | |
${{ runner.os }}-spm- | |
- name: Execute fastlane `test` | |
run: bundle exec fastlane test | |
- name: Report code coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} | |
gcov_path_exclude: Tests/**/* |