From 8e6009138756120e1fb0058b8278094812d6cf42 Mon Sep 17 00:00:00 2001 From: Enno Gotthold Date: Thu, 23 May 2024 13:51:50 +0200 Subject: [PATCH 1/2] CI: Switch from Codecov to Codacy --- .github/workflows/test.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index db15fdf..eaf2fae 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,6 +23,10 @@ jobs: uses: actions/checkout@v2 - name: Test run: go test -race -coverprofile=coverage.out -covermode=atomic -v ./... - - name: Upload coverage to Codecov - if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.17.x' - uses: codecov/codecov-action@v2 + - name: Upload test coverage to Codacy + run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report --force-coverage-parser go -r coverage.out + with: + CODACY_API_TOKEN: ${{ secrets.CODACY_API_TOKEN }} + CODACY_ORGANIZATION_PROVIDER: ${{ secrets.CODACY_ORGANIZATION_PROVIDER }} + CODACY_USERNAME: ${{ secrets.CODACY_USERNAME }} + CODACY_PROJECT_NAME: ${{ secrets.CODACY_PROJECT_NAME }} From 99b7c4880580d17700cf0881a3823dcd184c1ba2 Mon Sep 17 00:00:00 2001 From: Enno Gotthold Date: Thu, 23 May 2024 14:08:00 +0200 Subject: [PATCH 2/2] CI: Tmp --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index eaf2fae..581f3d6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,7 +25,7 @@ jobs: run: go test -race -coverprofile=coverage.out -covermode=atomic -v ./... - name: Upload test coverage to Codacy run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report --force-coverage-parser go -r coverage.out - with: + env: CODACY_API_TOKEN: ${{ secrets.CODACY_API_TOKEN }} CODACY_ORGANIZATION_PROVIDER: ${{ secrets.CODACY_ORGANIZATION_PROVIDER }} CODACY_USERNAME: ${{ secrets.CODACY_USERNAME }}