File tree Expand file tree Collapse file tree 2 files changed +21
-9
lines changed Expand file tree Collapse file tree 2 files changed +21
-9
lines changed Original file line number Diff line number Diff line change 77 pull_request :
88 branches : [ master ]
99 paths-ignore : [ README.md ]
10+ workflow_dispatch :
11+
1012jobs :
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]
13+ macos :
14+ name : Build and test on macos-latest
15+ runs-on : macOS-latest
1716 steps :
1817 - uses : actions/checkout@v2
19- - name : Set code coverage path
18+ - name : Set code coverage path
2019 run : echo "codecov_path=$(swift test --show-codecov-path)" >> $GITHUB_ENV
2120 - name : Test and publish code coverage to Code Climate
2221 uses : paulofaria/codeclimate-action@master
23- if : matrix.os == 'macos-10.15'
2422 env :
2523 CC_TEST_REPORTER_ID : ${{secrets.CC_TEST_REPORTER_ID}}
2624 with :
2725 downloadUrl : https://github.com/paulofaria/test-reporter/releases/download/0.9.0/test-reporter-0.9.0-darwin-amd64
2826 coverageCommand : swift test --enable-test-discovery --enable-code-coverage
2927 coverageLocations : ${{ env.codecov_path }}:lcov-json
28+
29+ linux :
30+ name : Build ${{ matrix.swift }} on ${{ matrix.os }}
31+ runs-on : ${{ matrix.os }}
32+ strategy :
33+ matrix :
34+ os : [ubuntu-latest]
35+ swift : ["5.4", "5.5", "5.6"]
36+ steps :
37+ - uses : swift-actions/setup-swift@v1
38+ with :
39+ swift-version : ${{ matrix.swift }}
40+ - uses : actions/checkout@v2
41+ - name : Test
42+ run : swift test
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments