Skip to content

Instantly share code, notes, and snippets.

@kenzo0107
Created December 25, 2019 05:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kenzo0107/0349f1a43c2aa26abf6db51fddd48af8 to your computer and use it in GitHub Desktop.
Save kenzo0107/0349f1a43c2aa26abf6db51fddd48af8 to your computer and use it in GitHub Desktop.
name: Test
on: [push]
jobs:
test:
strategy:
matrix:
go-version: [1.13.x]
platform: [macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v1
- name: Test
run: go test -v -count=1 -race -cover -coverprofile=coverage ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage
flags: unittests
name: codecov
fail_ci_if_error: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment