Skip to content

Commit 2f6e190

Browse files
chore: macOS CI uses swift-setup
Drops code climate integration
1 parent 9aded4c commit 2f6e190

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,27 @@ jobs:
2525

2626
macos:
2727
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"]
2933
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
3735
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+
4141
# 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/
4242
ubuntu-old:
4343
name: Build ${{ matrix.swift }} on ${{ matrix.os }}
4444
runs-on: ${{ matrix.os }}
4545
strategy:
4646
matrix:
4747
os: [ubuntu-20.04]
48-
swift: ["5.4", "5.5", "5.6"]
48+
swift: ["5.5", "5.6"]
4949
steps:
5050
- uses: swift-actions/setup-swift@v1
5151
with:
@@ -60,7 +60,7 @@ jobs:
6060
strategy:
6161
matrix:
6262
os: [ubuntu-latest]
63-
swift: ["5.7"]
63+
swift: ["5.7", "5.8"]
6464
steps:
6565
- uses: swift-actions/setup-swift@v1
6666
with:

0 commit comments

Comments
 (0)