diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6760f005..cceb6a18 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,7 +44,7 @@ jobs: - name: Run tests run: go test -covermode=count ./parser ./recipe -coverprofile=cover.out - - name: Send coverage data + - name: Send coverage data to Coveralls uses: essentialkaos/goveralls-action@v2 env: COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -53,20 +53,35 @@ jobs: parallel: true flag-name: linux-${{ matrix.go }} + - name: Send coverage data to Codacy + env: + CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} + run: | + bash <(curl -Ls https://coverage.codacy.com/get.sh) report \ + --force-coverage-parser go \ + -r cover.out \ + --partial + SendCoverage: name: Send Coverage runs-on: ubuntu-latest + if: success() || failure() needs: Go steps: - - name: Finish parallel tests + - name: Finish parallel tests (Coveralls) uses: essentialkaos/goveralls-action@v2 env: COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: parallel-finished: true + - name: Finish parallel tests (Codacy) + env: + CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} + run: bash <(curl -Ls https://coverage.codacy.com/get.sh) final + Aligo: name: Aligo runs-on: ubuntu-latest