-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.09 KB
/
tests.yaml
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
name: Tests
on:
pull_request:
branches: ["*"]
push:
branches: ["master"]
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
jobs:
test:
name: Build and test (macOS ${{matrix.test.machine}}, Xcode ${{ matrix.test.xcode }})
strategy:
matrix:
tests:
- xcode: '14.2'
machine: macos-12
- xcode: '14.3.1'
machine: macos-13
runs-on: ${{ matrix.tests.machine }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.tests.xcode }}.app
- name: Build and Test SPM
run: swift test --enable-code-coverage
- name: Update Cocoa Pods repo
run: pod repo update
- name: Build and Test CocoaPods
run: pod lib lint --allow-warnings --fail-fast
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}