Skip to content

Commit

Permalink
Fix codecov report upload fail (#2049)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Gilles authored Apr 8, 2024
1 parent dcd6c22 commit 580b7c6
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/docker-master-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,14 @@ jobs:
working-directory: ./server
run: npm audit --production --audit-level=critical || true
- name: 📄 Codecov report upload
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: 08cd0d46-0291-42ed-b352-50924cb6cca6

## Yes, we are storing the CODECOV token in plain text here and not as a secret.
## This is because Codecov report upload keeps failing because of a Github Action rate limit
## And as we are an open source project, we need forks to be able to upload reports as well, so
## we followed the recommandatiom from CodeCov:
## https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954
## It's not that dangerous to do it, and it's the best tradeoff we could find
10 changes: 9 additions & 1 deletion .github/workflows/docker-pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,17 @@ jobs:
working-directory: ./server
run: npm audit --production --audit-level=critical || true
- name: 📄 Codecov report upload
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: 08cd0d46-0291-42ed-b352-50924cb6cca6

## Yes, we are storing the CODECOV token in plain text here and not as a secret.
## This is because Codecov report upload keeps failing because of a Github Action rate limit
## And as we are an open source project, we need forks to be able to upload reports as well, so
## we followed the recommandatiom from CodeCov:
## https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954
## It's not that dangerous to do it, and it's the best tradeoff we could find
cypress-run:
name: Cypress run
runs-on: ubuntu-22.04
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/docker-release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,17 @@ jobs:
working-directory: ./server
run: npm audit --production --audit-level=critical || true
- name: 📄 Codecov report upload
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: 08cd0d46-0291-42ed-b352-50924cb6cca6

## Yes, we are storing the CODECOV token in plain text here and not as a secret.
## This is because Codecov report upload keeps failing because of a Github Action rate limit
## And as we are an open source project, we need forks to be able to upload reports as well, so
## we followed the recommandatiom from CodeCov:
## https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954
## It's not that dangerous to do it, and it's the best tradeoff we could find
build-front:
name: Front build
needs:
Expand Down

0 comments on commit 580b7c6

Please sign in to comment.