-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (51 loc) · 1.2 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
name: tests
on:
push:
branches:
- "main"
pull_request:
branches:
- "*"
jobs:
linux-all:
strategy:
fail-fast: false
matrix:
container:
- swift:5.5-focal
- swift:5.6-focal
- swift:5.7-jammy
- swift:5.8-jammy
- swift:5.9-jammy
- swift:5.10-jammy
- swift:6.0-jammy
- swiftlang/swift:nightly-main-jammy
container: ${{ matrix.container }}
runs-on: ubuntu-latest
steps:
- name: Check out package
uses: actions/checkout@v4
- name: Run tests
run: swift test
macos-all:
strategy:
fail-fast: false
matrix:
xcode:
- latest-stable
- latest
include:
- xcode: latest-stable
runs-on: macos-12
steps:
- name: Select latest available Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode }}
- name: Checkout code
uses: actions/checkout@v4
- name: Run tests
run: |
swift test \
-Xlinker -rpath \
-Xlinker $(xcode-select -p)/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.5/macosx