From 197a097fe7cfaa2a57764f24fae314284e0ad9fd Mon Sep 17 00:00:00 2001 From: Florian Ritterhoff <32478819+fritterhoff@users.noreply.github.com> Date: Sun, 5 Sep 2021 17:59:27 +0200 Subject: [PATCH] Feat codecov (#8) * Use codecov instead of coveralls * Run linting on every branch --- .github/workflows/go_cov.yml | 10 +++------- .github/workflows/golangci-lint.yml | 4 ---- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/go_cov.yml b/.github/workflows/go_cov.yml index f98d2125..463258cf 100644 --- a/.github/workflows/go_cov.yml +++ b/.github/workflows/go_cov.yml @@ -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: @@ -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) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 0850bc51..94d5862b 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -1,10 +1,6 @@ name: golangci-lint on: push: - tags: - - v* - branches: - - master pull_request: jobs: