aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Kuznetsov <evgeny@kuznetsov.md>2021-05-01 21:23:04 +0300
committerEvgeny Kuznetsov <evgeny@kuznetsov.md>2021-05-01 21:23:04 +0300
commit9d0133846445d77eae96b8801f8e116d36918583 (patch)
tree2d5e87f33fd284491da0e0f2dbf349af35631828
parentbd70b0cbc59419bf690905b06d4ac6fb6bb79809 (diff)
downloadradiorus-rss-9d0133846445d77eae96b8801f8e116d36918583.tar.gz
radiorus-rss-9d0133846445d77eae96b8801f8e116d36918583.zip
use github-actions for codecov
-rw-r--r--.github/workflows/codecov.yml19
-rw-r--r--.travis.yml26
2 files changed, 19 insertions, 26 deletions
diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml
new file mode 100644
index 0000000..45a8909
--- /dev/null
+++ b/.github/workflows/codecov.yml
@@ -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
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 49aa562..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,26 +0,0 @@
-language: go
-
-go: 1.13.x
-
-install: true
-
-env:
- - GO111MODULE=on
-
-before_script:
-
-script:
- - go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
- - go build
-
-cache:
- directories:
- - $HOME/.cache/go-build
- - $HOME/gopath/pkg/mod
-
-after_success:
- - bash <(curl -s https://codecov.io/bash)
-
-branches:
- except:
- - /^dependabot\/.*$/