Skip to content

Commit f29ea42

Browse files
authored
Update build.yml
1 parent 8223ea1 commit f29ea42

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,17 @@ jobs:
2323
fetch-depth: 0
2424

2525
- name: Set up JDK 17
26-
uses: actions/setup-java@v1
26+
uses: actions/setup-java@v4
2727
with:
28-
java-version: 17
28+
distribution: 'zulu'
29+
java-version: '21'
30+
cache: "maven"
2931

3032
- name: Set up Database
3133
run: |
3234
docker-compose up -d postgres
3335
docker ps -a
3436
35-
- name: Cache Maven packages
36-
uses: actions/cache@v1
37-
with:
38-
path: ~/.m2
39-
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
40-
restore-keys: ${{ runner.os }}-m2
41-
4237
- name: Build with Maven
4338
run: |
4439
mvn clean package -DskipTests

0 commit comments

Comments
 (0)