Skip to content

Commit e92e588

Browse files
committed
Install deps in CI after initing JDK and checking out code
1 parent d4bd665 commit e92e588

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,19 @@ jobs:
4141
java-version: 17
4242

4343
steps:
44+
- name: Checkout repository
45+
uses: actions/checkout@v3
46+
with:
47+
fetch-depth: 2
48+
49+
- name: Initialize JDK
50+
uses: actions/setup-java@v3
51+
with:
52+
cache: maven
53+
check-latest: true
54+
distribution: zulu
55+
java-version: ${{ matrix.java-version }}
56+
4457
- name: Install dependencies
4558
shell: bash
4659
run: |-
@@ -64,19 +77,6 @@ jobs:
6477
;;
6578
esac
6679
67-
- name: Checkout repository
68-
uses: actions/checkout@v3
69-
with:
70-
fetch-depth: 2
71-
72-
- name: Initialize JDK
73-
uses: actions/setup-java@v3
74-
with:
75-
cache: maven
76-
check-latest: true
77-
distribution: zulu
78-
java-version: ${{ matrix.java-version }}
79-
8080
- name: Compile and run tests
8181
shell: bash
8282
run: ./mvnw -B -U -Dcheckstyle.skip=true -Dlicense.skip=true clean verify

0 commit comments

Comments
 (0)