Skip to content

Commit

Permalink
chore(ci): bump gradle/actions from 3 to 4 (#60)
Browse files Browse the repository at this point in the history
* chore(ci): bump gradle/actions from 3 to 4

Bumps [gradle/actions](https://github.com/gradle/actions) from 3 to 4.
- [Release notes](https://github.com/gradle/actions/releases)
- [Commits](gradle/actions@v3...v4)

---
updated-dependencies:
- dependency-name: gradle/actions
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Drop setup-gradle `arguments:` and release.yml

* Drop wrapper-validation

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tim te Beek <[email protected]>
  • Loading branch information
dependabot[bot] and timtebeek authored Aug 14, 2024
1 parent d28e892 commit e05ab94
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 69 deletions.
29 changes: 3 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,35 +26,12 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: gradle/actions/wrapper-validation@v3
- name: set-up-jdk
uses: actions/setup-java@v4
- uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17
- uses: gradle/actions/setup-gradle@v4
- name: build
uses: gradle/actions/setup-gradle@v3
with:
arguments: ${{ env.GRADLE_SWITCHES }} build test
run: ./gradlew ${{ env.GRADLE_SWITCHES }} build test
- name: verify
run: mvn --show-version --no-transfer-progress --update-snapshots --fail-at-end --batch-mode -Dstyle.color=always verify

publish-snapshots:
needs: [build]
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: set-up-jdk
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17
- name: publish-snapshots
uses: gradle/actions/setup-gradle@v3
if: github.event_name == 'push'
timeout-minutes: 30
with:
arguments: ${{ env.GRADLE_SWITCHES }} snapshot
6 changes: 2 additions & 4 deletions .github/workflows/receive-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ jobs:
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- uses: gradle/actions/wrapper-validation@v3
- uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- uses: gradle/actions/setup-gradle@v4

# Capture the PR number
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#using-data-from-the-triggering-workflow
Expand All @@ -46,9 +46,7 @@ jobs:

# Execute recipes
- name: Apply OpenRewrite best practices
uses: gradle/actions/setup-gradle@v3
with:
arguments: ${{ env.GRADLE_SWITCHES }} rewriteRun -Drewrite.activeRecipe=org.openrewrite.recipes.OpenRewriteBestPractices
run: ./gradlew ${{ env.GRADLE_SWITCHES }} rewriteRun -Drewrite.activeRecipe=org.openrewrite.recipes.OpenRewriteBestPractices

# Capture the diff
- name: Create patch
Expand Down
39 changes: 0 additions & 39 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit e05ab94

Please sign in to comment.