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:
hackercat 2021-03-29 16:55:51 +02:00 committed by GitHub
parent af5140f13e
commit f5a02581c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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' }}