Skip to content

Commit

Permalink
chore(deps): update gradle/gradle-build-action action to v3 (#312)
Browse files Browse the repository at this point in the history
* chore(deps): update gradle/gradle-build-action action to v3

* Replace cache with setup

* Split up steps for readability

* https://github.com/gradle/actions/blob/v3/setup-gradle/action.yml#L101-L104

---------

Co-authored-by: Róbert Papp (TWiStErRob) <papp.robert.s@gmail.com>
  • Loading branch information
renovate-bot and TWiStErRob authored Jan 27, 2024
1 parent 802b5c1 commit 119756e
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 6 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,23 @@ jobs:
tests:
runs-on: ubuntu-latest
steps:

- name: Checkout project with submodules
uses: actions/checkout@v4
with:
submodules: true

- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'zulu'
- uses: gradle/gradle-build-action@v2

- uses: gradle/actions/setup-gradle@v3

- name: Run sanity check
run: ./gradlew --stacktrace test

- name: Run E2E tests
env:
ORG_GRADLE_PROJECT_sonatypeUsernameE2E: ${{ secrets.SONATYPE_USERNAME_E2E }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/gradle-latest-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'zulu'
- uses: gradle/gradle-build-action@v2

- uses: gradle/actions/setup-gradle@v3

- name: Fetch latest available Gradle versions
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ jobs:
name: "Validation"
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v4

- uses: gradle/wrapper-validation-action@v1
7 changes: 6 additions & 1 deletion .github/workflows/java-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,16 @@ jobs:
name: "OpenJDK ${{ matrix.jdk }}"
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v4

- uses: actions/setup-java@v4
with:
java-version: ${{ matrix.jdk }}
distribution: 'zulu'
- uses: gradle/gradle-build-action@v2

- uses: gradle/actions/setup-gradle@v3

# Workaround https://github.com/ajoberstar/gradle-stutter/issues/22
- name: Reduce number of Gradle regressions builds
run: |
Expand All @@ -35,6 +39,7 @@ jobs:
# The trick is that \2 will greedily eat everything before the last comma.
sed -r 's/^(.*?)=(.*),(.*)$/\1=\3/g' -i stutter.lockfile
cat stutter.lockfile
- name: Test cross Java versions compatibility
run: |
./gradlew --version
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:

- uses: actions/checkout@v4

- uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'zulu'
- uses: gradle/gradle-build-action@v2
with:
arguments: --stacktrace build compatTestJava11

- uses: gradle/actions/setup-gradle@v3

- name: "Build and Test"
run: ./gradlew --stacktrace build compatTestJava11

0 comments on commit 119756e

Please sign in to comment.