Add code testing on MacOS (#563)
* feat: add code testing on macos * change name of test job Keep the test job named `test` to align with current branch protection checks Co-authored-by: Casey Lee <cplee@nektos.com>
This commit is contained in:
parent
af5140f13e
commit
f5a02581c2
1 changed files with 74 additions and 59 deletions
17
.github/workflows/push.yml
vendored
17
.github/workflows/push.yml
vendored
|
@ -14,7 +14,7 @@ jobs:
|
|||
version: v1.32.2
|
||||
|
||||
test:
|
||||
name: Test
|
||||
name: Test on Linux
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
@ -31,6 +31,21 @@ jobs:
|
|||
files: coverage.txt
|
||||
fail_ci_if_error: true # optional (default = false)
|
||||
|
||||
test-macos:
|
||||
name: Test on MacOS
|
||||
runs-on: macos-latest
|
||||
continue-on-error: true # Don't let macos test fail whole workflow
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-go@v1
|
||||
with:
|
||||
go-version: 1.14
|
||||
- name: Install MacOS Docker
|
||||
uses: docker-practice/actions-setup-docker@master
|
||||
- run: go test -v -timeout 1h -cover ./...
|
||||
env:
|
||||
CGO_ENABLED: 0
|
||||
|
||||
snapshot:
|
||||
name: Snapshot
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
|
|
Loading…
Reference in a new issue