Skip to content

Commit 731ae4f

Browse files
committed
Update GitHub Actions' …actions
Remove the check on JDK version for actions/setup-java, as it will first check for pre-installed versions. Technically, we no longer need the next step either as JDK 17 comes preinstalled now, but we'll add JDK 18 next so…
1 parent fae5ddd commit 731ae4f

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

.github/workflows/maven.yml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ jobs:
1414
linux:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v3
1818

1919
- name: Setup environment
2020
run: echo "JAVA_HOME=${JAVA_HOME_8_X64}" | tee -a $GITHUB_ENV
2121

2222
- name: Cache Maven dependencies
23-
uses: actions/cache@v2
23+
uses: actions/cache@v3
2424
with:
2525
path: |
2626
~/.m2/repository/
@@ -35,21 +35,21 @@ jobs:
3535

3636
- name: Store reports
3737
if: steps.maven-build.outcome == 'success' || steps.maven-build.outcome == 'failure'
38-
uses: actions/upload-artifact@v2
38+
uses: actions/upload-artifact@v3
3939
with:
4040
name: linux-reports
4141
path: target/it-tests/*/build.log
4242

4343
windows:
4444
runs-on: windows-latest
4545
steps:
46-
- uses: actions/checkout@v2
46+
- uses: actions/checkout@v3
4747

4848
- name: Setup environment
4949
run: echo "JAVA_HOME=${Env:JAVA_HOME_11_X64}" | Tee-Object -FilePath $env:GITHUB_ENV -Append
5050

5151
- name: Cache Maven dependencies
52-
uses: actions/cache@v2
52+
uses: actions/cache@v3
5353
with:
5454
path: |
5555
~/.m2/repository/
@@ -64,7 +64,7 @@ jobs:
6464

6565
- name: Store reports
6666
if: steps.maven-build.outcome == 'success' || steps.maven-build.outcome == 'failure'
67-
uses: actions/upload-artifact@v2
67+
uses: actions/upload-artifact@v3
6868
with:
6969
name: windows-reports
7070
path: target/it-tests/*/build.log
@@ -76,25 +76,24 @@ jobs:
7676
matrix:
7777
java: [ 11, 17 ]
7878
steps:
79-
- uses: actions/checkout@v2
79+
- uses: actions/checkout@v3
8080

8181
- name: Setup JDK ${{ matrix.java }}
8282
id: setup-test-java
83-
if: matrix.java != 11
84-
uses: actions/setup-java@v1
83+
uses: actions/setup-java@v3
8584
with:
8685
java-version: ${{ matrix.java }}
86+
distribution: temurin
8787

8888
- name: Setup JAVA_HOME_${{ matrix.java }}_X64 environment variable
89-
if: matrix.java != 11
9089
run: echo "JAVA_HOME_${{ matrix.java }}_X64=${{ steps.setup-test-java.outputs.path }}" | tee -a $GITHUB_ENV
9190

9291
# TODO: investigate only running IT tests with that JDK, rather than the whole build, through Toolchains
9392
- name: Setup environment
9493
run: echo "JAVA_HOME=${JAVA_HOME_${{ matrix.java }}_X64}" | tee -a $GITHUB_ENV
9594

9695
- name: Cache Maven dependencies
97-
uses: actions/cache@v2
96+
uses: actions/cache@v3
9897
with:
9998
path: |
10099
~/.m2/repository/
@@ -109,7 +108,7 @@ jobs:
109108

110109
- name: Store reports
111110
if: steps.maven-build.outcome == 'success' || steps.maven-build.outcome == 'failure'
112-
uses: actions/upload-artifact@v2
111+
uses: actions/upload-artifact@v3
113112
with:
114113
name: jdk-${{ matrix.java }}-reports
115114
path: target/it-tests/*/build.log
@@ -121,13 +120,13 @@ jobs:
121120
matrix:
122121
gwt: [ "2.8.2", "HEAD-SNAPSHOT" ]
123122
steps:
124-
- uses: actions/checkout@v2
123+
- uses: actions/checkout@v3
125124

126125
- name: Setup environment
127126
run: echo "JAVA_HOME=${JAVA_HOME_8_X64}" | tee -a $GITHUB_ENV
128127

129128
- name: Cache Maven dependencies
130-
uses: actions/cache@v2
129+
uses: actions/cache@v3
131130
with:
132131
path: |
133132
~/.m2/repository/
@@ -144,7 +143,7 @@ jobs:
144143

145144
- name: Store reports
146145
if: steps.maven-build.outcome == 'success' || steps.maven-build.outcome == 'failure'
147-
uses: actions/upload-artifact@v2
146+
uses: actions/upload-artifact@v3
148147
with:
149148
name: gwt-${{ matrix.gwt }}-reports
150149
path: target/it-tests/*/build.log
@@ -158,13 +157,13 @@ jobs:
158157
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
159158
runs-on: ubuntu-latest
160159
steps:
161-
- uses: actions/checkout@v2
160+
- uses: actions/checkout@v3
162161

163162
- name: Setup environment
164163
run: echo "JAVA_HOME=${JAVA_HOME_11_X64}" | tee -a $GITHUB_ENV
165164

166165
- name: Cache Maven dependencies
167-
uses: actions/cache@v2
166+
uses: actions/cache@v3
168167
with:
169168
path: |
170169
~/.m2/repository/

0 commit comments

Comments
 (0)