summaryrefslogtreecommitdiff
path: root/.github/workflows/codecov.yml
blob: 03f87ec4934af8c9ebf38f939079ea063964d0e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 }}