-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (41 loc) · 1.15 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
name: CI
on: [push, pull_request]
jobs:
soundness:
name: Soundness Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.2.0
- name: Bootstrap Mint
uses: irgaly/setup-mint@v1
- name: Run soundness
run: |
scripts/soundness.sh
exit $(git status --porcelain | wc -l)
unit-test:
name: Unit Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
swift: [5.9, latest]
steps:
- name: Install Swift
uses: vapor/swiftly-action@v0.1
with:
toolchain: ${{ matrix.swift }}
env:
SWIFTLY_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v4.2.0
- name: Cache Swift PM
uses: actions/cache@v4.0.2
with:
path: .build
key: ${{ runner.os }}-${{ matrix.swift }}-spm-${{ hashFiles('Package.swift') }}
restore-keys: ${{ runner.os }}-${{ matrix.swift }}-spm-
- name: Resolve Swift dependencies
run: swift package resolve
- name: Run Unit Tests
run: swift test --parallel