-
Notifications
You must be signed in to change notification settings - Fork 27
62 lines (52 loc) · 1.22 KB
/
ci.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
56
57
58
59
60
61
62
name: CI
on:
push:
branches:
- main
paths-ignore:
- '.gitignore'
- 'LICENSE'
- 'README.md'
- 'resources/**'
pull_request:
paths-ignore:
- '.gitignore'
- 'LICENSE'
- 'README.md'
- 'resources/**'
workflow_dispatch:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint
runs-on: macos-13
env:
DEVELOPER_DIR: "/Applications/Xcode_14.3.app/Contents/Developer"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install swift-format
run: brew install swift-format
- name: Lint Code
run: make lint
tests:
name: Tests (Xcode ${{ matrix.xcode }})
needs: [lint]
runs-on: macos-13
env:
DEVELOPER_DIR: "/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer"
strategy:
matrix:
xcode:
- "14.1" # Swift 5.7
- "14.3" # Swift 5.8
- "15.0" # Swift 5.9
steps:
- name: Runner Overview
run: system_profiler SPHardwareDataType SPSoftwareDataType SPDeveloperToolsDataType
- name: Checkout
uses: actions/checkout@v3
- name: Run Tests
run: make tests