Skip to content

Commit 2c6e42c

Browse files
committed
build: 更新action版本
1 parent b362801 commit 2c6e42c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,27 @@ jobs:
1313
test:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717
- name: Set up JDK 21
18-
uses: actions/setup-java@v3
18+
uses: actions/setup-java@v4
1919
with:
2020
distribution: 'zulu'
2121
java-version: '21'
2222
cache: 'gradle'
23+
cache-dependency-path: |
24+
gradle/wrapper
2325
- name: Run Test with Gradle
2426
run: ./gradlew test jacocoTestReport testCodeCoverageReport --no-daemon
2527
- name: Store reports
2628
if: failure()
27-
uses: actions/upload-artifact@v3
29+
uses: actions/upload-artifact@v4
2830
with:
2931
name: reports
3032
path: |
3133
**/build/reports/
3234
**/build/test-results/
3335
- name: Upload coverage reports to Codecov
34-
uses: codecov/codecov-action@v3
36+
uses: codecov/codecov-action@v5
3537
with:
3638
token: ${{ secrets.CODECOV_TOKEN }}
3739
directory: build/reports/jacoco/

0 commit comments

Comments
 (0)