Skip to content

Commit

Permalink
actions/setup-java@v2
Browse files Browse the repository at this point in the history
### What's done:
* Specify distribution explicitly
  • Loading branch information
petertrr committed Apr 12, 2021
1 parent 6b25b85 commit f6d6544
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 1.11
distribution: zulu
java-version: 11
- name: Cache local Maven repository
uses: actions/cache@v2
with:
Expand Down Expand Up @@ -98,7 +99,8 @@ jobs:
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 1.11
distribution: zulu
java-version: 11
- name: Cache local Maven repository
uses: actions/cache@v2
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/detekt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 1.11
distribution: zulu
java-version: 11
- name: Cache local Maven repository
uses: actions/cache@v2
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/diktat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 1.11
distribution: zulu
java-version: 11
- name: Cache local Maven repository
uses: actions/cache@v2
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/diktat_snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 1.11
distribution: zulu
java-version: 11
- name: Cache local Maven repository (shared with regular CI build)
uses: actions/cache@v2
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/metrics_for_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 1.11
distribution: zulu
java-version: 11
- name: Cache local Maven repository
uses: actions/cache@v2
# keys are the same as in build_and_test workflow to make cache available for PRs
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 1.11
distribution: zulu
java-version: 11
- name: Cache local Maven repository
uses: actions/cache@v2
with:
Expand Down

0 comments on commit f6d6544

Please sign in to comment.