-
Notifications
You must be signed in to change notification settings - Fork 30
41 lines (38 loc) · 1.12 KB
/
ci.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
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 }}
exclude: Tests/**/*