Skip to content

Commit

Permalink
Upgrade Codecov GitHub Action to v2 (AY2223S1-CS2103-F14-1#128)
Browse files Browse the repository at this point in the history
Codecov GitHub Action v1 uses a deprecated bash uploader, which may
cease to function soon. The v2 version also has a files arg instead of a
file arg, suggesting possible deprecation of the file arg.

Let's upgrade to v2, use the files arg for coverage.xml and the directory
arg for the directory in which coverage.xml is found.
  • Loading branch information
yhtMinceraft1010X authored May 28, 2022
1 parent 4306465 commit 0f842d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ jobs:
- name: Build and check with Gradle
run: ./gradlew check coverage

- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v2
if: runner.os == 'Linux'
with:
file: ${{ github.workspace }}/build/reports/jacoco/coverage/coverage.xml
directory: ${{ github.workspace }}/build/reports/jacoco/coverage
files: coverage.xml
fail_ci_if_error: true

0 comments on commit 0f842d8

Please sign in to comment.