9
9
10
10
jobs :
11
11
12
+ " sanity-Tests " :
13
+ runs-on : macOS-latest
14
+ steps :
15
+ - name : Checkout
16
+ uses : actions/checkout@v2
17
+ - name : Install swiftformat
18
+ run : brew install swiftformat
19
+ - name : Run sanity
20
+ run : ./scripts/sanity.sh .
21
+
12
22
" tuxOS-Tests " :
13
23
runs-on : ubuntu-latest
14
24
strategy :
15
25
matrix :
16
26
images :
17
27
- swift:5.1
18
28
- swift:5.2
29
+ - swiftlang/swift:nightly-5.3-bionic
30
+ - swiftlang/swift:nightly-amazonlinux2
19
31
container :
20
32
image : ${{ matrix.images }}
21
- volumes :
22
- - $GITHUB_WORKSPACE:/src
23
- options : --workdir /src
24
33
steps :
25
34
- name : Checkout
26
- uses : actions/checkout@v1
27
- with :
28
- fetch-depth : 1
35
+ uses : actions/checkout@v2
29
36
- name : Test
30
37
run : swift test --enable-code-coverage --enable-test-discovery
31
38
- name : Convert coverage files
32
39
run : llvm-cov export -format="lcov" .build/debug/swift-base64-kitPackageTests.xctest -instr-profile .build/debug/codecov/default.profdata > info.lcov
40
+ - name : Install curl
41
+ if : matrix.images != 'swiftlang/swift:nightly-amazonlinux2'
42
+ run : apt-get update && apt-get install -y curl # required by the codecov action.
33
43
- name : Upload to codecov.io
34
- uses : codecov/codecov-action@v1.0.3
44
+ uses : codecov/codecov-action@v1
35
45
with :
36
- token : ${{secrets.CODECOV_TOKEN}}
37
- flags : base64,unittests
38
46
file : info.lcov
39
47
40
48
" tuxOS-Performance-Tests " :
@@ -44,16 +52,13 @@ jobs:
44
52
images :
45
53
- swift:5.1
46
54
- swift:5.2
55
+ - swiftlang/swift:nightly-5.3-bionic
56
+ - swiftlang/swift:nightly-amazonlinux2
47
57
container :
48
58
image : ${{ matrix.images }}
49
- volumes :
50
- - $GITHUB_WORKSPACE:/src
51
- options : --workdir /src
52
59
steps :
53
60
- name : Checkout
54
- uses : actions/checkout@v1
55
- with :
56
- fetch-depth : 1
61
+ uses : actions/checkout@v2
57
62
- name : Build
58
63
run : swift build -c release
59
64
- name : Run test
63
68
runs-on : macOS-latest
64
69
steps :
65
70
- name : Checkout
66
- uses : actions/checkout@v1
67
- with :
68
- fetch-depth : 1
71
+ uses : actions/checkout@v2
69
72
- name : Show all Xcode versions
70
73
run : ls -an /Applications/ | grep Xcode*
71
74
- name : Change Xcode command line tools
@@ -79,15 +82,13 @@ jobs:
79
82
swift package generate-xcodeproj
80
83
xcodebuild -quiet -parallel-testing-enabled YES -scheme swift-base64-kit-Package -enableCodeCoverage YES build test
81
84
- name : Codecov
82
- run : bash <(curl -s https://codecov.io/bash) -t ${{secrets.CODECOV_TOKEN}} -F base64,unittests - f *.coverage.txt
85
+ run : bash <(curl -s https://codecov.io/bash) -t ${{secrets.CODECOV_TOKEN}} -f *.coverage.txt
83
86
84
87
" macOS-Performance-Tests " :
85
88
runs-on : macOS-latest
86
89
steps :
87
90
- name : Checkout
88
- uses : actions/checkout@v1
89
- with :
90
- fetch-depth : 1
91
+ uses : actions/checkout@v2
91
92
- name : Build
92
93
run : swift build -c release
93
94
- name : Run test
0 commit comments