-
Notifications
You must be signed in to change notification settings - Fork 232
42 lines (40 loc) · 1.33 KB
/
integration-tests.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
name: Integration tests (manual)
# Manually triggered
# $ gh workflow run integration-tests.yml
on: workflow_dispatch
jobs:
verify:
runs-on: macos-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Ruby 2.7
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
- 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 integration_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 integration tests
run: bundle exec fastlane integration_tests
- name: Upload test results
uses: actions/upload-artifact@v3
if: always() # even if tests fail
with:
name: test-results
path: fastlane/test_output