-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (41 loc) · 1.05 KB
/
swift.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
name: Build and Test
on:
push:
pull_request:
schedule:
- cron: "30 9 * * 1"
jobs:
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image:
- swift:5.5.3-focal
- swift:5.9.2-focal
- swift:5.10.1-noble
container: ${{ matrix.image }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Build Swift Debug Package
run: swift build -c debug
- name: Build Swift Release Package
run: swift build -c release
- name: Run Tests
run: swift test --enable-test-discovery
nextstep:
runs-on: macos-latest
steps:
- name: Select latest available Xcode
uses: maxim-lobanov/setup-xcode@v1.5.1
with:
xcode-version: latest
- name: Checkout Repository
uses: actions/checkout@v3
- name: Build Swift Debug Package
run: swift build -c debug
- name: Build Swift Release Package
run: swift build -c release
- name: Run Tests
run: swift test