-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1.11 KB
/
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
34
35
36
37
38
39
40
41
# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
name: Test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allow one concurrent deployment
concurrency:
group: "testing"
cancel-in-progress: true
jobs:
macos-unit:
runs-on: macOS-13
steps:
- uses: actions/checkout@v4
- name: Switch Xcode 🔄
run: sudo xcode-select --switch /Applications/Xcode_15.0.app
- name: Test macOS
run: xcodebuild test -scheme fs-app-health-checks -destination "platform=macOS" -enableCodeCoverage YES
- name: Fetch Coverage
uses: sersoft-gmbh/swift-coverage-action@v4
id: coverage-files
- name: Publish Coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ${{ join(fromJSON(steps.coverage-files.outputs.files), ',') }}
linux-unit:
runs-on: ubuntu-latest
container: swift:jammy
steps:
- uses: actions/checkout@v3
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v