-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (51 loc) · 1.19 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
55
name: Test
on:
push:
branches: [main]
pull_request:
branches: ['*']
jobs:
macos:
name: macOS SPM unit tests
runs-on: macos-14
steps:
- uses: actions/checkout@v4
with:
submodules: true
persist-credentials: false
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '16.0'
- name: Set up SDK
run: cd sdk && sudo make install
- name: Run tests
run: swift test
macos_raw:
name: macOS raw build
runs-on: macos-14
steps:
- uses: actions/checkout@v4
with:
submodules: true
persist-credentials: false
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '16.0'
- name: Raw build
run: swift build
linux:
name: Linux SPM unit tests
runs-on: ubuntu-latest
container:
image: swift:6.0
steps:
- uses: actions/checkout@v4
with:
submodules: true
persist-credentials: false
- name: Install tools
run: apt-get update && apt-get install make
- name: Set up SDK
run: cd sdk && make install
- name: Run tests
run: swift test