Skip to content

Commit e661803

Browse files
committed
move formatter verification to a separated job
1 parent 13faf27 commit e661803

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/maven.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@ on:
1010
branches: [ master ]
1111

1212
jobs:
13+
verify-format:
14+
runs-on: ubuntu-latest
15+
name: Verify Source Format
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Setup Java
19+
uses: actions/setup-java@v1
20+
with:
21+
java-version: 8.0.x
22+
- name: Verify Format and License
23+
run: mvn spotless:check
1324
build:
1425
runs-on: ubuntu-latest
1526
name: Java ${{ matrix.java }} Maven Test
@@ -23,8 +34,6 @@ jobs:
2334
uses: actions/setup-java@v1
2435
with:
2536
java-version: ${{ matrix.java }}
26-
- name: Verify Format and License
27-
run: mvn spotless:check
2837
- name: Build with Maven
2938
run: mvn -q test -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
3039
build-graalvm:

0 commit comments

Comments
 (0)