From 769fa8c31d90e3239d902c5627134eecf9cd12e1 Mon Sep 17 00:00:00 2001 From: Tobias Lindberg Date: Mon, 10 Jan 2022 09:20:31 +0100 Subject: [PATCH 1/2] removing workflow --- .github/workflows/codecov.yml | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 .github/workflows/codecov.yml diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml deleted file mode 100644 index 188f66cb..00000000 --- a/.github/workflows/codecov.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: codecov.io - -on: - push: - pull_request: - -jobs: - build: - name: Code building and testing - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Setup go - uses: actions/setup-go@v2 - with: - go-version: ^1.17 - - - name: Running build from src/*.go - run: | - go build -o application src/*.go - - - name: Runing tests for coverage - run: | - go test -race -coverprofile=coverage.out -covermode=atomic `go list ./... | grep -v vendor/` - - - name: Uploading coverage to Codecov - run: | - bash <(curl -s https://codecov.io/bash) From 8d2942be9ec5f7aefbb645ec9ea0229c814169f0 Mon Sep 17 00:00:00 2001 From: Tobias Lindberg Date: Mon, 10 Jan 2022 09:56:30 +0100 Subject: [PATCH 2/2] adding back codecov --- .github/workflows/codecov.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/codecov.yml diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml new file mode 100644 index 00000000..08a31232 --- /dev/null +++ b/.github/workflows/codecov.yml @@ -0,0 +1,24 @@ +name: codecov.io + +on: + push: + pull_request: + +jobs: + codecov: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup go + uses: actions/setup-go@v2 + with: + go-version: ^1.17 + + - name: Runing tests for coverage + run: | + go test -race -coverprofile=coverage.out -covermode=atomic `go list ./... | grep -v vendor/` + + - name: Uploading coverage to Codecov + uses: codecov/codecov-action@v2