Skip to content

Commit 476132d

Browse files
committed
Simplify CI workflow: Use installed Gradle directly instead of wrapper
- Remove wrapper update step entirely - Use 'gradle' command directly (from gradle-build-action) instead of './gradlew' - This is cleaner and more efficient for CI - we control the Gradle version via the action - Remove unnecessary gradlew permission step
1 parent be5002d commit 476132d

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ jobs:
3131
with:
3232
gradle-version: ${{ matrix.gradle-version }}
3333

34-
- name: Grant execute permission for gradlew
35-
run: chmod +x gradlew
36-
37-
- name: Update Gradle wrapper to ${{ matrix.gradle-version }}
38-
run: gradle wrapper --gradle-version ${{ matrix.gradle-version }} --no-daemon
39-
4034
- name: Cache Gradle dependencies
4135
uses: actions/cache@v3
4236
with:
@@ -49,13 +43,13 @@ jobs:
4943
${{ runner.os }}-gradle-
5044
5145
- name: Run tests with Gradle ${{ matrix.gradle-version }}
52-
run: ./gradlew clean test --no-daemon
46+
run: gradle clean test --no-daemon
5347

5448
- name: Build plugin with Gradle ${{ matrix.gradle-version }}
55-
run: ./gradlew clean build -x test --no-daemon
49+
run: gradle clean build -x test --no-daemon
5650

5751
- name: Validate plugin
58-
run: ./gradlew validatePlugins --no-daemon
52+
run: gradle validatePlugins --no-daemon
5953

6054
- name: Upload test results
6155
if: always()

0 commit comments

Comments
 (0)