File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -25,27 +25,27 @@ jobs:
25
25
26
26
macos :
27
27
name : Build and test on macos-latest
28
- runs-on : macOS-latest
28
+ runs-on : macos-latest
29
+ strategy :
30
+ matrix :
31
+ os : [ubuntu-20.04]
32
+ swift : ["5.5", "5.6", "5.7", "5.8"]
29
33
steps :
30
- - uses : actions/checkout@v2
31
- - name : Set code coverage path
32
- run : echo "codecov_path=$(swift test --show-codecov-path)" >> $GITHUB_ENV
33
- - name : Test and publish code coverage to Code Climate
34
- uses : paulofaria/codeclimate-action@master
35
- env :
36
- CC_TEST_REPORTER_ID : ${{secrets.CC_TEST_REPORTER_ID}}
34
+ - uses : swift-actions/setup-swift@v1
37
35
with :
38
- downloadUrl : https://github.com/paulofaria/test-reporter/releases/download/0.9.0/test-reporter-0.9.0-darwin-amd64
39
- coverageCommand : swift test --enable-test-discovery --enable-code-coverage
40
- coverageLocations : ${{ env.codecov_path }}:lcov-json
36
+ swift-version : ${{ matrix.swift }}
37
+ - uses : actions/checkout@v3
38
+ - name : Test
39
+ run : swift test
40
+
41
41
# ubuntu-latest is ubuntu-22.04 currently. Swift versions older than 5.7 don't have builds for 22.04. https://www.swift.org/download/
42
42
ubuntu-old :
43
43
name : Build ${{ matrix.swift }} on ${{ matrix.os }}
44
44
runs-on : ${{ matrix.os }}
45
45
strategy :
46
46
matrix :
47
47
os : [ubuntu-20.04]
48
- swift : ["5.4", "5. 5", "5.6"]
48
+ swift : ["5.5", "5.6"]
49
49
steps :
50
50
- uses : swift-actions/setup-swift@v1
51
51
with :
60
60
strategy :
61
61
matrix :
62
62
os : [ubuntu-latest]
63
- swift : ["5.7"]
63
+ swift : ["5.7", "5.8" ]
64
64
steps :
65
65
- uses : swift-actions/setup-swift@v1
66
66
with :
You can’t perform that action at this time.
0 commit comments