-
-
Notifications
You must be signed in to change notification settings - Fork 76
58 lines (54 loc) · 1.44 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
name: "Get CI"
on:
push:
branches:
- main
pull_request:
branches:
- '*'
jobs:
macos-run-tests:
name: Unit Tests (Xcode ${{ matrix.xcode }})
strategy:
fail-fast: false
matrix:
xcode: ["14.3", "15.0", "15.3"]
include:
- xcode: "15.3"
macos: macOS-14
- xcode: "15.0"
macos: macOS-14
- xcode: "14.3"
macos: macOS-13
runs-on: ${{ matrix.macos }}
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
steps:
- uses: actions/checkout@v2
- name: Run Tests
run: swift test
linux-run-tests:
name: Unit Tests (Linux, Swift ${{ matrix.swift }})
strategy:
fail-fast: false
matrix:
swift: ["5.9"]
runs-on: ubuntu-latest
container: swift:${{ matrix.swift }}
steps:
- uses: actions/checkout@v2
- name: Run Tests
run: swift test
discover-typos:
name: Discover Typos
runs-on: macOS-13
env:
DEVELOPER_DIR: /Applications/Xcode_14.3.1.app/Contents/Developer
steps:
- uses: actions/checkout@v2
- name: Discover typos
run: |
export PATH="$PATH:/Library/Frameworks/Python.framework/Versions/3.11/bin"
python3 -m pip install --upgrade pip
python3 -m pip install codespell
codespell --ignore-words-list="hart,inout,msdos,sur" --skip="./.build/*"