Skip to content

Commit

Permalink
Merge pull request #221 from chromaui/paulelliott/remove-codacy
Browse files Browse the repository at this point in the history
Replace Codacy code coverage reporting with Codecov
  • Loading branch information
paulelliott authored Jan 14, 2025
2 parents 1c27910 + 639fbfd commit cb9a623
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 20 deletions.
10 changes: 0 additions & 10 deletions .codacy.yaml

This file was deleted.

3 changes: 1 addition & 2 deletions .github/workflows/main-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
test:
uses: ./.github/workflows/test-base.yml
secrets:
codacyProjectToken: ${{ secrets.CODACY_PROJECT_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
test_cypress:
needs: test
uses: ./.github/workflows/test-cypress.yml
Expand All @@ -28,4 +28,3 @@ jobs:
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
npmToken: ${{ secrets.NPM_CHROMATIC_COM_PUBLISH_TOKEN }}

3 changes: 1 addition & 2 deletions .github/workflows/pull-request-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
test:
uses: ./.github/workflows/test-base.yml
secrets:
codacyProjectToken: ${{ secrets.CODACY_PROJECT_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
test_cypress:
needs: test
uses: ./.github/workflows/test-cypress.yml
Expand All @@ -30,4 +30,3 @@ jobs:
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
npmToken: ${{ secrets.NPM_CHROMATIC_COM_PUBLISH_TOKEN }}

11 changes: 5 additions & 6 deletions .github/workflows/test-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Test Base
on:
workflow_call:
secrets:
codacyProjectToken:
CODECOV_TOKEN:
required: true

jobs:
Expand Down Expand Up @@ -39,8 +39,7 @@ jobs:
run: |
yarn run test:unit
- name: Report code coverage to Codacy
run: |
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r packages/cypress/coverage/lcov.info -r packages/playwright/coverage/lcov.info -r packages/shared/coverage/lcov.info
env:
CODACY_PROJECT_TOKEN: ${{ secrets.codacyProjectToken }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit cb9a623

Please sign in to comment.