Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ jobs:
- name: Set up JDK
uses: ./.github/actions/setup-jdk
- name: Check formatting
run: mvn -B spotless:check --file pom.xml
# -nsu безопасен: SNAPSHOT-зависимостей нет.
run: mvn -B -nsu spotless:check --file pom.xml

lint:
needs: build
Expand All @@ -46,8 +47,16 @@ jobs:
- uses: actions/checkout@v7
- name: Set up JDK
uses: ./.github/actions/setup-jdk
- name: Restore checkstyle cache
uses: actions/cache@v5
with:
# Путь совпадает с cacheFile в pom.xml.
path: target/checkstyle-cachefile
key: checkstyle-${{ hashFiles('checkstyle.xml', 'pom.xml') }}
restore-keys: checkstyle-
- name: Check lint
run: mvn -B checkstyle:check --file pom.xml
# -nsu безопасен: SNAPSHOT-зависимостей нет.
run: mvn -B -nsu checkstyle:check --file pom.xml

junit:
needs: build
Expand Down
1 change: 1 addition & 0 deletions .mvn/maven.config
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--no-transfer-progress
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@
<configLocation>checkstyle.xml</configLocation>
<consoleOutput>true</consoleOutput>
<failOnViolation>true</failOnViolation>
<cacheFile>${project.build.directory}/checkstyle-cachefile</cacheFile>
</configuration>
<executions>
<execution>
Expand Down
Loading