-
Notifications
You must be signed in to change notification settings - Fork 49
61 lines (58 loc) · 1.45 KB
/
tests.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
55
56
57
58
59
60
61
name: Tests
on:
- push
- pull_request
- workflow_dispatch
jobs:
linux:
strategy:
fail-fast: false
matrix:
swift:
- image: "swift:5.10-jammy"
os: ubuntu-22.04
- image: "swift:5.9-jammy"
os: ubuntu-22.04
- image: "swift:5.10-focal"
os: ubuntu-20.04
- image: "swift:5.9-focal"
os: ubuntu-20.04
name: Linux
runs-on: ${{ matrix.swift.os }}
container:
image: ${{ matrix.swift.image }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Swift Version
run: swift --version
- name: Debug Build
run: swift build -v -c debug
- name: Debug Test
run: swift test -c debug --parallel
macos:
strategy:
fail-fast: false
matrix:
xcode:
- 15.3
- 15.2
- 15.1
- 15.0.1
name: macOS
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Select Xcode
run: xcodes select ${{ matrix.xcode }}
- name: Swift Version
run: swift --version
- name: Debug Build
run: swift build -v -c debug
- name: Debug Test for Commit
if: github.event_name != 'pull_request'
run: swift test -c debug --parallel 2>&1
- name: Debug Test for Pull Request
if: github.event_name == 'pull_request'
run: swift test -c debug --parallel 2>&1 | xcbeautify --renderer github-actions