Skip to content

Commit

Permalink
Switch to codecov action v4 using a token to upload
Browse files Browse the repository at this point in the history
  • Loading branch information
mzuehlke committed Nov 21, 2024
1 parent 26c80c7 commit c9f342a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ jobs:
run: sbt '++ ${{ matrix.scala }}' validate

- name: Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
uses: codecov/codecov-action@v4

- name: Make target directories
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
Expand Down
5 changes: 3 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ ThisBuild / githubWorkflowBuild :=
.Use(UseRef.Public("coursier", "setup-action", "v1"), params = Map("apps" -> "scalafmt")),
WorkflowStep.Sbt(List("validate"), name = Some("Build project")),
WorkflowStep.Use(
UseRef.Public("codecov", "codecov-action", "v3"),
name = Some("Codecov")
ref = UseRef.Public("codecov", "codecov-action", "v4"),
name = Some("Codecov"),
env = Map("CODECOV_TOKEN" -> "${{ secrets.CODECOV_TOKEN }}")
)
)

Expand Down

0 comments on commit c9f342a

Please sign in to comment.