-
Notifications
You must be signed in to change notification settings - Fork 10
52 lines (38 loc) · 971 Bytes
/
pr.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
name: PR Checks
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
swiftlint:
name: Run SwiftLint
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v3
- name: Run SwiftLint on all files
uses: norio-nomura/[email protected]
with:
args: --strict --force-exclude
unit-tests:
name: Run unit tests
runs-on: macos-12
timeout-minutes: 30
steps:
- name: Check out the code
uses: actions/checkout@v3
with:
submodules: recursive
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_14.1.app/Contents/Developer
- name: Run tests
run: |
swift test --parallel \
--xunit-output tests.xml
- name: Publish Unit Tests Report
uses: mikepenz/action-junit-report@v3
if: always()
with:
check_name: Test Report
report_paths: tests.xml