Skip to content

Commit

Permalink
Merge pull request #23 from cobbler/tests/add-codacy
Browse files Browse the repository at this point in the history
CI: Switch from Codecov to Codacy
  • Loading branch information
SchoolGuy committed May 24, 2024
2 parents b57151e + 99b7c48 commit 27d8d64
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
env:
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 }}

0 comments on commit 27d8d64

Please sign in to comment.