-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 1009 Bytes
/
test.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
name: Test all platforms
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allow one concurrent deployment
concurrency:
group: "testing"
cancel-in-progress: true
jobs:
build:
runs-on: macOS-13
steps:
- uses: actions/checkout@v4
- name: Switch Xcode 🔄
run: sudo xcode-select --switch /Applications/Xcode_15.0.app
- name: Swift Lint
run: swiftlint --strict
- name: Test iOS
run: xcodebuild test -scheme fs-local-authentication-provider -destination "platform=iOS Simulator,name=iPhone 15" -enableCodeCoverage YES -skipPackagePluginValidation
- name: Fetch Coverage
uses: sersoft-gmbh/swift-coverage-action@v4
id: coverage-files
- name: Publish Coverage to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Test macOS
run: xcodebuild test -scheme fs-local-authentication-provider -destination "platform=macOS" -enableCodeCoverage YES