-
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (48 loc) · 1.29 KB
/
checks.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
45
46
47
48
49
50
51
name: 🚨 Checks
on:
push:
branches:
- main
pull_request:
branches:
- '*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: 📝 Lint
runs-on: ubuntu-latest
steps:
- name: 🗄️ Checkout Code
uses: actions/checkout@v4
- name: 📝 SwiftLint
uses: stanfordbdhg/action-swiftlint@v4
with:
args: --strict
test:
name: 🧪 Test
runs-on: macos-latest
strategy:
matrix:
platform: [IOS, MACOS, MAC_CATALYST, TVOS, VISIONOS, WATCHOS]
fail-fast: false
steps:
- name: 👀 Install visionOS runtime
if: matrix.platform == 'visionOS'
run: |
sudo xcodebuild -runFirstLaunch
sudo xcrun simctl list
sudo xcodebuild -downloadPlatform visionOS
sudo xcodebuild -runFirstLaunch
- name: 🗄️ Checkout Code
uses: actions/checkout@v4
- name: 🧰 Select Xcode Version
run: xcodes select 16
- name: 🧪 Run tests
run: make XCODEBUILD_ARGUMENT=test CONFIG=Debug PLATFORM='${{ matrix.platform }}'
- name: 📊 Upload Coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
swift: true