-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3835fbb
commit c3fd1e6
Showing
6 changed files
with
98 additions
and
71 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 |
---|---|---|
|
@@ -10,7 +10,6 @@ jobs: | |
actions: read | ||
contents: read | ||
strategy: | ||
#max-parallel: 3 | ||
fail-fast: false | ||
matrix: | ||
java: [ '17', '21' ] | ||
|
@@ -19,59 +18,19 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: '0' | ||
- name: "Setup Git" | ||
shell: bash | ||
run: | | ||
git branch -a | ||
for branch in $( | ||
git branch -a \ | ||
| grep '^\s*remotes' \ | ||
| egrep --invert-match '(:?HEAD|remotes/pull/[0-9]+/merge)$' \ | ||
| sed -e "s/^.*remotes\/origin\///" | ||
); do | ||
echo setting up $branch | ||
git checkout $branch | ||
git checkout - | ||
done | ||
git branch -a | ||
git remote remove origin | ||
git remote add origin [email protected]:${GITHUB_REPOSITORY}.git | ||
git remote -v | ||
fetch-depth: '1' | ||
- name: Setup java | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'zulu' | ||
java-version: ${{ matrix.java }} | ||
- name: prepare Gradle | ||
shell: bash | ||
run: | | ||
mkdir -p ~/.gradle && echo "org.gradle.daemon=false" >> ~/.gradle/gradle.properties | ||
- name: Check formatting | ||
shell: bash | ||
run: | | ||
./gradlew --no-daemon spotlessJavaCheck | ||
- name: "Gradle build" | ||
shell: bash | ||
run: | | ||
java -version | ||
javac -version | ||
./gradlew --no-daemon build | ||
- name: Transorm static code analysis to SARIF | ||
if: ${{ (success() || failure()) }} | ||
run: | | ||
npx violations-command-line -sarif sarif-report.json \ | ||
-v "FINDBUGS" "." ".*build/reports/spotbugs/main\.xml$" "Spotbugs" \ | ||
-v "CHECKSTYLE" "." ".*build/reports/checkstyle/main\.xml$" "Checkstyle" \ | ||
-v "PMD" "." ".*build/reports/pmd/main\.xml$" "PMD" \ | ||
-v "JUNIT" "." ".*/build/test-results/test/TEST-.*\.xml$" "JUNIT" | ||
- uses: github/codeql-action/upload-sarif@v3 | ||
if: ${{ (success() || failure()) }} | ||
with: | ||
sarif_file: sarif-report.json | ||
category: violations-lib | ||
|
||
- name: Publish Build | ||
uses: actions/upload-artifact@v4 | ||
if: failure() | ||
|
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
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
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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
description="WireMock integration for Spring Boot." | ||
version=1.0.0 | ||
#Wed Sep 25 17:54:02 CEST 2024 | ||
baseArtifact=wiremock-spring-boot | ||
developer.id=tomasbjerre | ||
githubRepo=wiremock-spring-boot | ||
description=WireMock integration for Spring Boot. | ||
developer.name=Tomas Bjerre | ||
developer.email=[email protected] | ||
version=3.0.0-SNAPSHOT | ||
group=org.wiremock.spring |