-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use setup-gradle instead of gradle-build-action check build
- Loading branch information
Showing
1 changed file
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,18 +17,25 @@ jobs: | |
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }} | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | ||
- name: Cache Gradle Caches | ||
uses: gradle/gradle-build-action@v3 | ||
- name: Grant permission to execute | ||
run: chmod +x gradlew | ||
uses: actions/[email protected] | ||
|
||
- name: Setup Java | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'temurin' | ||
java-version: 17 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/[email protected] | ||
|
||
- name: Run Gradle tasks | ||
run: ./gradlew preMerge --continue | ||
|
||
# We do a run of the new task `templateExample` created by the plugin | ||
- name: Run the plugin | ||
run: ./gradlew templateExample --message="Test Run" --tag=CI | ||
if: success() | ||
|
||
# And we verify that the output of the file is correct. | ||
- name: Verify the plugin output | ||
run: grep -Fxq "[CI] Test Run" ./example/build/template-example.txt | ||
|