From 0869bca23c42fae58c6ec65dd2516d6b577c8996 Mon Sep 17 00:00:00 2001 From: James Mills Date: Sun, 29 Mar 2020 08:36:14 +1000 Subject: Add Github Workflows (#5) --- .github/workflows/codecov.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/codecov.yml (limited to '.github/workflows/codecov.yml') 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 }} -- cgit v1.2.3