Skip to content

Commit

Permalink
Create go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
exelban authored Feb 24, 2020
1 parent 8a686a2 commit 8ec1d1a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Code coverage
on: [push]
jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:

- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go

- uses: actions/checkout@v1

- name: Test
run: go test -race -coverprofile=coverage.out -covermode=atomic

- name: codecov
uses: codecov/[email protected]
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./coverage.out

0 comments on commit 8ec1d1a

Please sign in to comment.