Skip to content

Commit

Permalink
Bump actions/setup-java from 1 to 3 (#298)
Browse files Browse the repository at this point in the history
* Bump actions/setup-java from 1 to 3

Bumps [actions/setup-java](https://github.com/actions/setup-java) from 1 to 3.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](actions/setup-java@v1...v3)

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

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

* Added missing distribution, cache setup simplified

* Added missing distribution, cache setup simplified #2

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Łukasz Witkowski <[email protected]>
  • Loading branch information
dependabot[bot] and lwitkowski authored Sep 7, 2023
1 parent e8878bc commit 61d47b3
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 80 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,11 @@ jobs:
- uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 11

- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
${{ runner.os }}-
distribution: temurin
cache: 'maven'

- name: Compile
run: ./mvnw install -Pquick -pl '!integration-test'
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/latest-stable-compatibility-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,11 @@ jobs:
- uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 11

- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
${{ runner.os }}-
distribution: temurin
cache: 'maven'

- name: Integration Tests (latest - classic - jackson)
env:
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/maven-regression.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,11 @@ jobs:
- uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 11

- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
${{ runner.os }}-
distribution: temurin
cache: 'maven'

- name: Build project
run: ./mvnw install -Pquick -pl '!integration-test'
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/native-mode-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,11 @@ jobs:
- uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 11

- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
${{ runner.os }}-
distribution: temurin
cache: 'maven'

- name: Compile
run: ./mvnw clean install -Pquick -pl '!integration-test'
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,11 @@ jobs:
- uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 11

- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
${{ runner.os }}-
distribution: temurin
cache: 'maven'

- name: Setup Maven
uses: whelk-io/maven-settings-xml-action@v21
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/quickstart-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,11 @@ jobs:
- uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 11

- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
${{ runner.os }}-
distribution: temurin
cache: 'maven'

- name: Compile and Install Extension
run: |
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/static-code-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,11 @@ jobs:
- uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 11

- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
${{ runner.os }}-
distribution: temurin
cache: 'maven'

- name: Check formatting
run: ./mvnw formatter:validate
13 changes: 3 additions & 10 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,11 @@ jobs:
- uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 11

- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
${{ runner.os }}-
distribution: temurin
cache: 'maven'

- name: Unit Tests
run: ./mvnw test

0 comments on commit 61d47b3

Please sign in to comment.