-
Notifications
You must be signed in to change notification settings - Fork 9
41 lines (40 loc) · 934 Bytes
/
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
name: test
on:
pull_request:
push:
branches:
- master
workflow_dispatch:
jobs:
linux:
name: Test on Linux
runs-on: ubuntu-22.04
container:
image: swift:5.7
steps:
- uses: actions/checkout@v2
- name: Show Environments
run: swift --version
- name: Install missing dependencies in ubuntu
run: make ubuntu-deps
- name: Validate Source Code
run: make autocorrect && [ -z "$(git status --porcelain)" ]
- name: Run Test
run: make test
macOS:
name: Test on macOS
runs-on: macos-12
strategy:
matrix:
xcode_version:
- "14.0.1"
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode_version }}.app
steps:
- uses: actions/checkout@v2
- name: Show Environments
run: |
swift --version
xcodebuild -version
- name: Run Test
run: make test