13
13
runs-on : macOS-latest
14
14
steps :
15
15
- name : Checkout
16
- uses : actions/checkout@v2
16
+ uses : actions/checkout@v4
17
17
- name : Install swiftformat
18
18
run : brew install swiftformat
19
19
- name : Run validity
@@ -25,24 +25,21 @@ jobs:
25
25
fail-fast : false
26
26
matrix :
27
27
images :
28
- - swift:5.1
29
- - swift:5.2
30
- - swift:5.3
31
- - swiftlang/swift:nightly-master
28
+ - swift:5.8
29
+ - swift:5.9
30
+ - swift:5.10
31
+ - swiftlang/swift:nightly-jammy
32
32
container :
33
33
image : ${{ matrix.images }}
34
34
steps :
35
35
- name : Checkout
36
- uses : actions/checkout@v2
36
+ uses : actions/checkout@v4
37
37
- name : Test
38
- run : swift test --enable-code-coverage --enable-test-discovery
38
+ run : swift test --enable-code-coverage
39
39
- name : Convert coverage files
40
40
run : llvm-cov export -format="lcov" .build/debug/swift-extras-base64PackageTests.xctest -instr-profile .build/debug/codecov/default.profdata > info.lcov
41
- - name : Install curl
42
- if : matrix.images != 'swiftlang/swift:nightly-amazonlinux2'
43
- run : apt-get update && apt-get install -y curl # required by the codecov action.
44
41
- name : Upload to codecov.io
45
- uses : codecov/codecov-action@v1
42
+ uses : codecov/codecov-action@v4
46
43
with :
47
44
file : info.lcov
48
45
@@ -52,15 +49,12 @@ jobs:
52
49
fail-fast : false
53
50
matrix :
54
51
images :
55
- - swift:5.1
56
- - swift:5.2
57
- - swift:5.3
58
- - swiftlang/swift:nightly-master
52
+ - swift:5.10
59
53
container :
60
54
image : ${{ matrix.images }}
61
55
steps :
62
56
- name : Checkout
63
- uses : actions/checkout@v2
57
+ uses : actions/checkout@v4
64
58
- name : Build & run
65
59
run : swift run -c release
66
60
@@ -70,62 +64,43 @@ jobs:
70
64
fail-fast : false
71
65
matrix :
72
66
images :
73
- - swift:5.3
74
- - swiftlang/swift:nightly-master
67
+ - swift:5.10
75
68
container :
76
69
image : ${{ matrix.images }}
77
70
env :
78
71
MAX_ALLOCS_ALLOWED_base64_decoding : 1000
79
72
MAX_ALLOCS_ALLOWED_base64_encoding : 1000
73
+ MAX_ALLOCS_ALLOWED_base32_decoding : 1000
74
+ MAX_ALLOCS_ALLOWED_base32_encoding : 1000
80
75
steps :
81
76
- name : Checkout
82
- uses : actions/checkout@v2
77
+ uses : actions/checkout@v4
83
78
- name : Test
84
79
run : ./run-tests.sh
85
80
working-directory : ./IntegrationTests
86
81
87
82
" macOS-Tests " :
88
- runs-on : macOS-latest
83
+ runs-on : macOS-14
89
84
strategy :
90
85
fail-fast : false
91
- matrix :
92
- xcode :
93
- - Xcode_11.2.app
94
- - Xcode_11.6.app
95
- - Xcode_12.2.app
96
86
steps :
97
87
- name : Checkout
98
- uses : actions/checkout@v2
99
- - name : Show all Xcode versions
100
- run : ls -an /Applications/ | grep Xcode*
101
- - name : Change Xcode command line tools
102
- run : sudo xcode-select -s /Applications/${{ matrix.xcode }}/Contents/Developer
103
- - name : SPM Build
104
- run : swift build
88
+ uses : actions/checkout@v4
105
89
- name : SPM Tests
106
- run : swift test --parallel -Xswiftc -DDEBUG
107
- - name : Xcode Tests
108
- run : |
109
- swift package generate-xcodeproj
110
- xcodebuild -quiet -parallel-testing-enabled YES -scheme swift-extras-base64-Package -enableCodeCoverage YES build test
111
- - name : Codecov
112
- run : bash <(curl -s https://codecov.io/bash) -t ${{secrets.CODECOV_TOKEN}} -f *.coverage.txt
90
+ run : swift test --parallel --enable-code-coverage - Xswiftc -DDEBUG
91
+ - name : Convert coverage files
92
+ 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
93
+ - name : Upload to codecov.io
94
+ uses : codecov/codecov-action@v4
95
+ with :
96
+ file : info.lcov
113
97
114
98
" macOS-Performance-Tests " :
115
- runs-on : macOS-latest
99
+ runs-on : macOS-13
116
100
strategy :
117
101
fail-fast : false
118
- matrix :
119
- xcode :
120
- - Xcode_11.2.app
121
- - Xcode_11.6.app
122
- - Xcode_12.2.app
123
102
steps :
124
103
- name : Checkout
125
- uses : actions/checkout@v2
126
- - name : Change Xcode command line tools
127
- run : sudo xcode-select -s /Applications/${{ matrix.xcode }}/Contents/Developer
128
- - name : Swift version
129
- run : swift --version
104
+ uses : actions/checkout@v4
130
105
- name : Build & run
131
106
run : swift run -c release
0 commit comments