-
Notifications
You must be signed in to change notification settings - Fork 12
50 lines (42 loc) · 1.25 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
42
43
44
45
46
47
48
49
50
name: ci
on:
pull_request:
workflow_dispatch:
push:
branches:
- master
jobs:
run_pod_tests:
name: Run pod tests
strategy:
matrix:
os: [macos-12, macos-13, macos-14]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Define validation directory
id: define_validation_dir
run: echo "path=${{ runner.temp }}/validation_${{ github.run_number }}_${{ github.run_attempt }}" >> $GITHUB_OUTPUT
- name: Run pod unit tests
run: |
bundle exec pod lib lint \
--allow-warnings \
--validation-dir="${{ steps.define_validation_dir.outputs.path }}" \
--no-clean
- name: Upload test artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: test_artifacts
path: ${{ steps.define_validation_dir.outputs.path }}
- name: Run SPM unit tests
run: |
xcodebuild test \
-scheme swift-simple-source \
-destination 'platform=iOS Simulator,name=iPhone SE (3rd generation),OS=latest' \
| xcbeautify