diff options
| author | James Mills <prologic@shortcircuit.net.au> | 2020-03-29 08:36:14 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-29 08:36:14 +1000 |
| commit | 0869bca23c42fae58c6ec65dd2516d6b577c8996 (patch) | |
| tree | 51317923757be5b902e613f3b3ae90c5924e12b1 /.github/workflows/codecov.yml | |
| parent | 9b159b32cb068280cab7df3217cef64a9dafc5b0 (diff) | |
Add Github Workflows (#5)
Diffstat (limited to '.github/workflows/codecov.yml')
| -rw-r--r-- | .github/workflows/codecov.yml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml new file mode 100644 index 0000000..03f87ec --- /dev/null +++ b/.github/workflows/codecov.yml @@ -0,0 +1,24 @@ +--- +name: Coverage +on: + push: + branches: + - master + pull_request: +jobs: + test: + name: Test and Report + runs-on: ubuntu-latest + steps: + - name: Setup Go + uses: actions/setup-go@v1 + with: + go-version: 1.13.x + - name: Checkout + uses: actions/checkout@v1 + - name: Test + run: go test -v -cover -coverprofile=coverage.txt -covermode=atomic -race . + - name: Report + uses: codecov/codecov-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} |
