-
Notifications
You must be signed in to change notification settings - Fork 13
85 lines (79 loc) · 2.09 KB
/
ci.yaml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
"validity-Tests":
runs-on: macOS-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install swiftformat
run: brew install swiftformat
- name: Run validity
run: ./scripts/validity.sh .
"tuxOS-Tests":
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
images:
- swift:5.8
- swift:5.9
- swift:5.10
- swiftlang/swift:nightly-jammy
container:
image: ${{ matrix.images }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Test
run: swift test --enable-code-coverage
- name: Convert coverage files
run: llvm-cov export -format="lcov" .build/debug/swift-extras-base64PackageTests.xctest -instr-profile .build/debug/codecov/default.profdata > info.lcov
- name: Upload to codecov.io
uses: codecov/codecov-action@v4
with:
file: info.lcov
"tuxOS-Performance-Tests":
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
images:
- swift:5.10
container:
image: ${{ matrix.images }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build & run
run: swift run -c release
"macOS-Tests":
runs-on: macOS-14
strategy:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
- name: SPM Tests
run: swift test --parallel --enable-code-coverage -Xswiftc -DDEBUG
- name: Convert coverage files
run: xcrun llvm-cov export -format="lcov" .build/debug/swift-extras-base64PackageTests.xctest/Contents/MacOS/swift-extras-base64PackageTests -instr-profile .build/debug/codecov/default.profdata > info.lcov
- name: Upload to codecov.io
uses: codecov/codecov-action@v4
with:
file: info.lcov
"macOS-Performance-Tests":
runs-on: macOS-13
strategy:
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build & run
run: swift run -c release