Skip to content

Commit

Permalink
Add Codecov token (required in v4)
Browse files Browse the repository at this point in the history
The token is stored as a secret in the GitHub repository settings.
According to the docs, PRs should still get coverage results although
they cannot access the token:

> Tokenless uploading is unsupported. However, PRs made from forks to
the upstream public repos will support tokenless (e.g. contributors to
OS projects do not need the upstream repo's Codecov token)

source: https://github.com/codecov/codecov-action?tab=readme-ov-file#breaking-changes

The token is additionally stored as a Dependabot secret so Dependabot
can also upload coverage results.

Signed-off-by: Florian Hockmann <fh@florian-hockmann.de>
(cherry picked from commit 7660660)
  • Loading branch information
FlorianHockmann committed Mar 11, 2024
1 parent aca533d commit dc1f78f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci-backend-cql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@ jobs:
name: jacoco-reports
path: target/jacoco-combined.exec
- uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
name: codecov-cql-${{ matrix.name }}-java-${{ matrix.java }}

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci-backend-hbase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,7 @@ jobs:
name: jacoco-reports
path: target/jacoco-combined.exec
- uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
name: codecov-hbase-${{ matrix.name }}-java-${{ matrix.java }}
2 changes: 2 additions & 0 deletions .github/workflows/ci-backend-scylla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,5 +144,7 @@ jobs:
name: jacoco-reports
path: target/jacoco-combined.exec
- uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
name: codecov-cql-${{ matrix.name }}-java-${{ matrix.java }}
2 changes: 2 additions & 0 deletions .github/workflows/ci-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,5 +140,7 @@ jobs:
name: jacoco-reports
path: target/jacoco-combined.exec
- uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
name: codecov-core-${{ matrix.module }}-java-${{ matrix.java }}
2 changes: 2 additions & 0 deletions .github/workflows/ci-index-es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,7 @@ jobs:
name: jacoco-reports
path: target/jacoco-combined.exec
- uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
name: codecov-index-${{ matrix.name }}-java-${{ matrix.java }}
2 changes: 2 additions & 0 deletions .github/workflows/ci-index-solr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,7 @@ jobs:
name: jacoco-reports
path: target/jacoco-combined.exec
- uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
name: codecov-index-${{ matrix.name }}-java-${{ matrix.java }}

0 comments on commit dc1f78f

Please sign in to comment.