Skip to content

Commit

Permalink
Feat codecov (#8)
Browse files Browse the repository at this point in the history
* Use codecov instead of coveralls

* Run linting on every branch
  • Loading branch information
fritterhoff authored Sep 5, 2021
1 parent 3ffbbbb commit 197a097
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/go_cov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ on:
pull_request:

jobs:

build:
name: Build and Unit Test
runs-on: ubuntu-latest
steps:

- name: Set up Go
uses: actions/setup-go@v2
with:
Expand All @@ -22,9 +20,7 @@ jobs:
run: go build -v ./...

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

- name: Upload Coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: coverage.out
- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash)
4 changes: 0 additions & 4 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: golangci-lint
on:
push:
tags:
- v*
branches:
- master
pull_request:

jobs:
Expand Down

0 comments on commit 197a097

Please sign in to comment.