-
Notifications
You must be signed in to change notification settings - Fork 13
44 lines (37 loc) · 1.34 KB
/
pull-request.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
name: Pull Request Build and Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
macos-build:
# macOS-latest images are not the most recent
# The macos-latest workflow label currently uses the macOS 12 runner image
# The vast majority of macOS developers would be using the latest version of macOS
# Current list here: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#choosing-github-hosted-runners
runs-on: macOS-14
steps:
- uses: actions/checkout@v4
- name: Build (macOS)
run: swift build -v
- name: Run tests
run: swift test -v
macos-build-latest:
# Let's also check that the code builds on the 'latest' macOS version according to Microsoft
# At 23rd April 2023 the latest macOS version is macOS 12
runs-on: macOS-latest
steps:
- uses: actions/checkout@v4
- name: Build (macOS)
run: swift build -v
- name: Run tests
run: swift test -v
ubuntu-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build (Ubuntu)
run: swift build -v
- name: Run tests
run: swift test -v