Skip to content

Commit 0f30533

Browse files
authored
chore: Use setup-java v2.0.0 (#471)
1 parent 813dd17 commit 0f30533

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/tests.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
schedule:
1414
- cron: "0 0 * * *"
1515

16+
env:
17+
JAVA_DISTRIBUTION: 'adopt'
18+
1619
jobs:
1720
build-and-test:
1821
runs-on: ${{ matrix.os }}
@@ -24,11 +27,12 @@ jobs:
2427
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
2528
with:
2629
fetch-depth: 2
27-
- uses: actions/setup-java@d202f5dbf7256730fb690ec59f6381650114feb2 # v1.4.3
30+
- uses: actions/setup-java@8764a52df183aa0ccea74521dfd9d506ffc7a19a # v2.0.0
2831
with:
2932
java-version: 11
3033
java-package: jdk
3134
architecture: x64
35+
distribution: ${{ env.JAVA_DISTRIBUTION }}
3236

3337
- name: Get date for cache # see https://github.com/actions/cache README
3438
id: get-date
@@ -72,11 +76,12 @@ jobs:
7276
- uses: actions/setup-python@8c5ea631b2b2d5d8840cf4a2b183a8a0edc1e40d # v2.2.0
7377
with:
7478
python-version: 3.8
75-
- uses: actions/setup-java@d202f5dbf7256730fb690ec59f6381650114feb2 # v1.4.3
79+
- uses: actions/setup-java@8764a52df183aa0ccea74521dfd9d506ffc7a19a # v2.0.0
7680
with:
7781
java-version: 11
7882
java-package: jdk
7983
architecture: x64
84+
distribution: ${{ env.JAVA_DISTRIBUTION }}
8085

8186
- name: Get date for cache # see https://github.com/actions/cache README
8287
id: get-date
@@ -103,11 +108,12 @@ jobs:
103108

104109
steps:
105110
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
106-
- uses: actions/setup-java@d202f5dbf7256730fb690ec59f6381650114feb2 # v1.4.3
111+
- uses: actions/setup-java@8764a52df183aa0ccea74521dfd9d506ffc7a19a # v2.0.0
107112
with:
108113
java-version: 11
109114
java-package: jdk
110115
architecture: x64
116+
distribution: ${{ env.JAVA_DISTRIBUTION }}
111117

112118
- name: Get date for cache # see https://github.com/actions/cache README
113119
id: get-date

0 commit comments

Comments
 (0)