From 9d0133846445d77eae96b8801f8e116d36918583 Mon Sep 17 00:00:00 2001 From: Evgeny Kuznetsov Date: Sat, 1 May 2021 21:23:04 +0300 Subject: use github-actions for codecov --- .github/workflows/codecov.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/codecov.yml (limited to '.github/workflows') 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 -- cgit v1.2.3