Skip to content

Commit

Permalink
Drop setup-gradle arguments: and release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Aug 14, 2024
1 parent 8c97d37 commit cc37991
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 68 deletions.
28 changes: 3 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,34 +27,12 @@ jobs:
with:
fetch-depth: 0
- uses: gradle/actions/wrapper-validation@v4
- 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@v4
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@v4
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@v4
- 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@v4
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 cc37991

Please sign in to comment.