Skip to content

Commit 7e442e1

Browse files
committed
update workflow
1 parent 199ba6e commit 7e442e1

File tree

1 file changed

+24
-33
lines changed

1 file changed

+24
-33
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -35,44 +35,35 @@ jobs:
3535
run: swift test --parallel
3636

3737
linux:
38-
name: Test Swift ${{ matrix.swift }} on Ubuntu Latest
38+
name: Test Swift ${{ matrix.swift }}
3939
runs-on: ubuntu-latest
40+
container:
41+
image: swift:${{ matrix.swift }}
4042
strategy:
4143
matrix:
42-
swift: ["6.0", "6.1"]
44+
swift: ["5.8", "5.9", "5.10", "6.0", "6.1"]
4345
steps:
44-
- uses: swift-actions/setup-swift@v2
45-
with:
46-
swift-version: ${{ matrix.swift }}
47-
- uses: actions/checkout@v3
48-
- name: Test
49-
run: swift test --parallel
50-
# TODO: Add test coverage, but it's currently not working with Swift 6.1.0
51-
# - name: Get test coverage html
52-
# run: |
53-
# llvm-cov show \
54-
# $(swift build --show-bin-path)/GraphitiPackageTests.xctest \
55-
# --instr-profile $(swift build --show-bin-path)/codecov/default.profdata \
56-
# --ignore-filename-regex="\.build|Tests" \
57-
# --format html \
58-
# --output-dir=.test-coverage
59-
# - name: Upload test coverage html
60-
# uses: actions/upload-artifact@v4
61-
# with:
62-
# name: test-coverage-report
63-
# path: .test-coverage
64-
65-
backcompat-ubuntu-22_04:
66-
name: Test Swift ${{ matrix.swift }} on Ubuntu 22.04
67-
runs-on: ubuntu-22.04
68-
strategy:
69-
matrix:
70-
swift: ["5.8", "5.9", "5.10"]
71-
steps:
72-
- uses: swift-actions/setup-swift@v2
73-
with:
74-
swift-version: ${{ matrix.swift }}
7546
- uses: actions/checkout@v3
7647
- name: Test
7748
run: swift test --parallel
7849

50+
# TODO: Add test coverage upload but it's currently not working with Swift 6.1.0/Ubuntu-latest
51+
# test-coverage:
52+
# runs-on: ubuntu-latest
53+
# steps:
54+
# - uses: actions/checkout@v3
55+
# - name: Test
56+
# run: swift test --parallel --enable-code-coverage
57+
# - name: Get test coverage html
58+
# run: |
59+
# llvm-cov show \
60+
# $(swift build --show-bin-path)/GraphitiPackageTests.xctest \
61+
# --instr-profile $(swift build --show-bin-path)/codecov/default.profdata \
62+
# --ignore-filename-regex="\.build|Tests" \
63+
# --format html \
64+
# --output-dir=.test-coverage
65+
# - name: Upload test coverage html
66+
# uses: actions/upload-artifact@v4
67+
# with:
68+
# name: test-coverage-report
69+
# path: .test-coverage

0 commit comments

Comments
 (0)