forked from JoeMatt/AltSign
-
Notifications
You must be signed in to change notification settings - Fork 6
54 lines (46 loc) · 1.06 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
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Unit Test
on:
pull_request:
paths:
- "**.swift"
- "**.m"
- "**.c"
- "**.cpp"
- "**.h"
- "**.hpp"
- "test.yml"
jobs:
swiftpm:
name: Test iOS (swiftpm)
runs-on: macos-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: iOS - Swift PM
run: |
set -o pipefail && \
swift test --parallel | \
xcpretty -c --test --color \
--report junit \
--output build/reports/junit.xml \
--report html --output build/reports/html
- name: Upload Test Results
uses: actions/upload-artifact@v2
if: always()
with:
name: Test Results
path: build/reports
- name: Upload Coverage Results
uses: actions/upload-artifact@v2
if: always()
with:
name: Coverage Results
path: build/coverage
- name: Upload Logs
uses: actions/upload-artifact@v2
if: always()
with:
name: Logs
path: build/logs