Skip to content

Commit 0f842d8

Browse files
Upgrade Codecov GitHub Action to v2 (AY2324S2-CS2103T-F13-1#128)
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.
1 parent 4306465 commit 0f842d8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/gradle.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ jobs:
3838
- name: Build and check with Gradle
3939
run: ./gradlew check coverage
4040

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

0 commit comments

Comments
 (0)