@@ -32,21 +32,10 @@ jobs:
32
32
xcode-version : latest
33
33
- uses : actions/checkout@v3
34
34
- name : Build and test
35
- run : swift test --parallel --enable-test-discovery --enable-code-coverage
36
- - name : Get test coverage html
37
- run : llvm-cov show \
38
- .build/x86_64-apple-macosx/debug/GraphitiPackageTests.xctest/Contents/MacOS/GraphitiPackageTests \
39
- --instr-profile .build/x86_64-apple-macosx/debug/codecov/default.profdata \
40
- --format html \
41
- --output-dir=.test-coverage
42
- - name : Upload test coverage html
43
- uses : actions/upload-artifact@v2
44
- with :
45
- name : test-coverage-report
46
- path : .test-coverage
35
+ run : swift test --parallel --enable-test-discovery
47
36
48
- # 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/
49
- ubuntu-old :
37
+ # Swift versions older than 5.7 don't have builds for ubuntu 22.04. https://www.swift.org/download/
38
+ ubuntu-20_04 :
50
39
name : Build ${{ matrix.swift }} on ${{ matrix.os }}
51
40
runs-on : ${{ matrix.os }}
52
41
strategy :
@@ -61,12 +50,12 @@ jobs:
61
50
- name : Test
62
51
run : swift test --parallel
63
52
64
- ubuntu-latest :
53
+ ubuntu-22_04 :
65
54
name : Build ${{ matrix.swift }} on ${{ matrix.os }}
66
55
runs-on : ${{ matrix.os }}
67
56
strategy :
68
57
matrix :
69
- os : [ubuntu-latest ]
58
+ os : [ubuntu-22.04 ]
70
59
swift : ["5.7"]
71
60
steps :
72
61
- uses : swift-actions/setup-swift@v1
75
64
- uses : actions/checkout@v3
76
65
- name : Test
77
66
run : swift test --parallel
67
+
68
+ ubuntu-latest :
69
+ name : Build latest on ubuntu
70
+ runs-on : ubuntu-latest
71
+ steps :
72
+ - uses : swift-actions/setup-swift@v1
73
+ - uses : actions/checkout@v3
74
+ - name : Test
75
+ run : swift test --parallel --enable-code-coverage
76
+ - name : Get test coverage html
77
+ run : |
78
+ llvm-cov show \
79
+ $(swift build --show-bin-path)/GraphitiPackageTests.xctest \
80
+ --instr-profile $(swift build --show-bin-path)/codecov/default.profdata \
81
+ --format html \
82
+ --output-dir=.test-coverage
83
+ - name : Upload test coverage html
84
+ uses : actions/upload-artifact@v3
85
+ with :
86
+ name : test-coverage-report
87
+ path : .test-coverage
0 commit comments