Create go.yml

This commit is contained in:
Branden
2021-04-01 18:41:40 -05:00
committed by GitHub
parent 872ce23d5c
commit eb3ae90e50
+36
View File
@@ -0,0 +1,36 @@
name: Test Coverage
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.13
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Build
run: go build -v .
- name: Test
run: go test -race -covermode=atomic -coverprofile ./cp.out
- name: Codecov
# You may pin to the exact commit or the version.
# uses: codecov/codecov-action@7d5dfa54903bd909319c580a00535b483d1efcf3
uses: codecov/codecov-action@v1.0.14
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./cp.out