-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (39 loc) · 1.09 KB
/
ci.yml
File metadata and controls
49 lines (39 loc) · 1.09 KB
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
name: Build and test
on: [push]
jobs:
Build:
runs-on: macos-12
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Build
run: swift build
Test:
runs-on: macos-12
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Test
run: swift test --enable-code-coverage
- name: Generate coverage
uses: sersoft-gmbh/swift-coverage-action@v3
id: coverage-files
- name: Upload coverage
uses: codecov/codecov-action@v3
with:
files: ${{join(fromJSON(steps.coverage-files.outputs.files), ',')}}
Samples:
runs-on: macos-12
strategy:
matrix:
project: [TaskTracker, SearchApis]
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Test
uses: sersoft-gmbh/xcodebuild-action@v2
with:
project: ./Samples/${{ matrix.project }}/${{ matrix.project }}.xcodeproj
scheme: ${{ matrix.project }}
destination: "platform=iOS Simulator,name=iPhone 13 Pro"
action: test