Skip to content

Commit

Permalink
use github-actions for codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
nekr0z committed May 1, 2021
1 parent 079f8cf commit 380e6f3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: codecov
on: [push]
jobs:
codecov:
name: codecov
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.14
- name: vet
run: |
go vet ./...
- name: generate report
run: |
go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: upload coverage report
uses: codecov/codecov-action@v1
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ before_install:
before_script:

script:
- go vet ./...
- go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
- go build

before_deploy:
Expand All @@ -38,7 +36,6 @@ cache:
- $HOME/gopath/pkg/mod

after_success:
- bash <(curl -s https://codecov.io/bash)

branches:
except:
Expand Down

0 comments on commit 380e6f3

Please sign in to comment.