build(action): 将 gradle/gradle-build-action@v3.1.0 迁移至 gradle/actions/setup-gradle@v3

This commit is contained in:
2024-08-30 08:45:35 +08:00
parent 63f68acccd
commit 4cf670a4d0
5 changed files with 15 additions and 24 deletions

View File

@ -24,12 +24,10 @@ jobs:
with:
java-version: '11'
distribution: 'adopt-hotspot'
cache: 'gradle'
- uses: gradle/actions/wrapper-validation@v3
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build and test
uses: gradle/gradle-build-action@v3.1.0
with:
gradle-version: 'wrapper'
arguments: test
run: ./gradlew clean test