Skip to content

Commit

Permalink
Use setup-gradle instead of gradle-build-action check build
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Wong committed Sep 10, 2024
1 parent ef29258 commit 3778310
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3778310

Please sign in to comment.