-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes for diktat check workflows (#613)
### What's done: * Use config from release for check by release version * Check all modules in snapshot check * Fixing code style
- Loading branch information
Showing
3 changed files
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,9 @@ jobs: | |
|
||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
# set this to 0 to fetch all tags too and be able to use them later | ||
fetch-depth: 0 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
|
@@ -23,5 +26,12 @@ jobs: | |
key: ${{ runner.os }}-maven-diktat-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven-diktat- | ||
- name: Substitute diktat config with the one from the latest release | ||
# fixme: can be done from the fetched repo without additional network request | ||
run: | | ||
git fetch --tags | ||
LATEST_TAG=$(git describe --tags --abbrev=0) | ||
DIKTAT_CONFIG=diktat-analysis.yml | ||
wget -O $DIKTAT_CONFIG https://raw.githubusercontent.com/cqfn/diKTat/$LATEST_TAG/$DIKTAT_CONFIG | ||
- name: Run diktat via maven plugin | ||
run: mvn -B diktat:check@diktat -DskipPluginMarker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters