Skip to content

Commit 612e9e6

Browse files
committed
Update maven.yml
1 parent 15859f5 commit 612e9e6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/maven.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Build with Maven
33

44
on:
55
push:
6-
branches: [ master ]
6+
branches: [ main ]
77
pull_request:
8-
branches: [ master ]
8+
branches: [ main ]
99
workflow_dispatch:
1010

1111
jobs:
@@ -26,14 +26,16 @@ jobs:
2626
uses: actions/setup-java@v4
2727
with:
2828
java-version: ${{ matrix.java-version }}
29-
distribution: 'temurin'
29+
distribution: "temurin"
3030
- name: Cache local Maven repository
3131
uses: actions/cache@v4
3232
with:
3333
path: ~/.m2/repository
3434
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
3535
restore-keys: |
3636
${{ runner.os }}-maven-
37+
- name: Install dependencies
38+
run: mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true --batch-mode --show-version --file pom.xml
3739
- name: Build with Maven
38-
run: mvn clean install --batch-mode --show-version --file pom.xml
40+
run: mvn test --batch-mode --file pom.xml
3941

0 commit comments

Comments
 (0)