Skip to content

Commit 0e7a9e2

Browse files
authored
Update build-and-test.yml
1 parent 35dcae5 commit 0e7a9e2

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed
Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
11
name: Build and Test
22
on:
33
push:
4-
branches:
5-
- master
4+
branches: [master]
65
pull_request:
7-
branches:
8-
- master
6+
branches: [master]
97

108
jobs:
119
build:
1210
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
actions: write
14+
1315
steps:
14-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
17+
1518
- name: Set up JDK 11
16-
uses: actions/setup-java@v2
19+
uses: actions/setup-java@v4
1720
with:
21+
distribution: temurin
1822
java-version: '11'
19-
distribution: 'adopt'
2023
cache: maven
24+
2125
- name: Build and Test with Maven
22-
run: mvn --batch-mode --update-snapshots verify
26+
run: mvn -B -ntp --update-snapshots verify

0 commit comments

Comments
 (0)