File tree Expand file tree Collapse file tree 1 file changed +23
-8
lines changed Expand file tree Collapse file tree 1 file changed +23
-8
lines changed Original file line number Diff line number Diff line change 8
8
branches : [ master ]
9
9
paths-ignore : [ README.md ]
10
10
jobs :
11
- build :
12
- name : Build and test on ${{ matrix.os }}
13
- runs-on : ${{ matrix.os }}
14
- strategy :
15
- matrix :
16
- os : [macos-10.15, macos-latest, ubuntu-18.04, ubuntu-20.04]
11
+ macos :
12
+ name : Build and test on macos-latest
13
+ runs-on : macOS-latest
17
14
steps :
18
15
- uses : actions/checkout@v2
19
- - name : Set code coverage path
16
+ - name : Set code coverage path
20
17
run : echo "codecov_path=$(swift test --show-codecov-path)" >> $GITHUB_ENV
21
18
- name : Test and publish code coverage to Code Climate
22
19
uses : paulofaria/codeclimate-action@master
23
- if : matrix.os == 'macos-10.15'
24
20
env :
25
21
CC_TEST_REPORTER_ID : ${{secrets.CC_TEST_REPORTER_ID}}
26
22
with :
27
23
downloadUrl : https://github.com/paulofaria/test-reporter/releases/download/0.9.0/test-reporter-0.9.0-darwin-amd64
28
24
coverageCommand : swift test --enable-test-discovery --enable-code-coverage
29
25
coverageLocations : ${{ env.codecov_path }}:lcov-json
26
+
27
+ linux :
28
+ name : Build and test on ${{ matrix.tag }}-${{ matrix.os }}
29
+ runs-on : ubuntu-latest
30
+ strategy :
31
+ matrix :
32
+ os :
33
+ - focal
34
+ - bionic
35
+ tag :
36
+ - swift:5.3
37
+ - swift:5.4
38
+ container :
39
+ image : ${{ matrix.tag }}-${{ matrix.os }}
40
+ steps :
41
+ - name : Checkout
42
+ uses : actions/checkout@v2
43
+ - name : Test
44
+ run : swift test --enable-test-discovery --enable-code-coverage --sanitize=thread
You can’t perform that action at this time.
0 commit comments