-
Notifications
You must be signed in to change notification settings - Fork 230
47 lines (45 loc) · 1.41 KB
/
verify.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
name: Unit tests
on:
pull_request:
branches:
- master
jobs:
verify:
runs-on: macos-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Ruby 3.0
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
- name: Restore cache
uses: actions/cache@v3
with:
path: |
vendor
Branch-TestBed/Pods
key: ${{ runner.os }}-${{ hashFiles('Gemfile.lock','Branch-TestBed/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-
- name: Install Ruby dependencies
run: |
bundle config set --local path vendor
bundle check || bundle install
# This happens automatically with the unit_tests lane, but adding it here
# makes it easier to keep track of installation time via GHA without
# adding execution time to the next step.
- name: Install CocoaPods dependencies
run: bundle exec fastlane prepare_pods
- name: Run unit tests
run: bundle exec fastlane unit_tests
- name: Upload test results
uses: actions/upload-artifact@v3
if: always() # even if tests fail
with:
name: test-results
path: fastlane/test_output
- name: Upload codecov results
uses: codecov/codecov-action@v3
with:
files: ./fastlane/test_output/cobertura.xml