Skip to content

Commit 2a9d037

Browse files
authored
Update build workflow (#121)
1 parent 6a58edd commit 2a9d037

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: Build project
22
on:
33
push:
4-
branches: [ main ]
54
pull_request:
65
branches: [ main ]
76

@@ -12,24 +11,26 @@ jobs:
1211
steps:
1312
# Checkout repo using https://github.com/marketplace/actions/checkout
1413
- name: Checkout
15-
uses: actions/checkout@v2
14+
uses: actions/checkout@v3
1615

1716
- name: Set up JDK 1.8
18-
uses: actions/setup-java@v1
17+
uses: actions/setup-java@v3
1918
with:
20-
java-version: 1.8
19+
distribution: 'temurin'
20+
java-version: 8
2121

2222
# Aerospike cluster for integration tests (https://github.com/reugn/github-action-aerospike)
2323
- name: Set up Aerospike Database
2424
uses: reugn/github-action-aerospike@v1
2525

2626
# See: https://github.com/actions/cache/blob/master/examples.md#java---maven
27-
- name: Maven cache and restore deps
28-
uses: actions/cache@v1
27+
- name: Cache local Maven repository
28+
uses: actions/cache@v2
2929
with:
3030
path: ~/.m2/repository
3131
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
3232
restore-keys: |
3333
${{ runner.os }}-maven-
34+
3435
- name: Build with Maven
3536
run: mvn clean test -B -U

0 commit comments

Comments
 (0)