-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (38 loc) · 1011 Bytes
/
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
42
43
44
45
46
47
name: CI
on:
push:
branches:
- master
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
test:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Gems
run: bundle install
- name: Verify cocoapods
run: |
sudo gem install cocoapods
pod lib lint
- name: Build
run: bundle exec fastlane build_for_testing
- name: Test
run: bundle exec fastlane test_without_building
- name: Archive xcresult
working-directory: ./fastlane/test_output
run: |
if [ ! -z "$(find . -maxdepth 1 -name '*.xcresult' -print -quit)" ]; then
tar -czf xcresult.tar.gz *.xcresult
fi
- name: Upload Test XCResult
uses: actions/upload-artifact@v4
with:
name: xcresult
path: ./fastlane/test_output/xcresult.tar.gz
retention-days: 1