Skip to content

Commit d1902fc

Browse files
committed
Added additional quality gates to build.
1 parent 08ac2ad commit d1902fc

File tree

23 files changed

+1322
-486
lines changed

23 files changed

+1322
-486
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,28 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v4
11+
with:
12+
fetch-depth: 0
13+
persist-credentials: false
1114

1215
- name: Set up JDK 21
1316
uses: oracle-actions/setup-java@v1
1417
with:
1518
website: jdk.java.net
1619
release: 21
17-
18-
- name: Build with Maven
19-
run: mvn clean install -B
20-
21-
- name: Mutation testing
22-
run: mvn org.pitest:pitest-maven:mutationCoverage -B
20+
- run: ./mvnw clean install -Pall-quality-gates -B
2321

2422
release:
2523
runs-on: ubuntu-latest
2624
needs: build
2725
if: github.ref == 'refs/heads/main'
2826

2927
steps:
30-
- uses: actions/checkout@v3
28+
- uses: actions/checkout@v4
29+
with:
30+
fetch-depth: 0
31+
persist-credentials: false
3132

3233
- name: Set up JDK 21
3334
uses: oracle-actions/setup-java@v1
@@ -36,7 +37,7 @@ jobs:
3637
release: 21
3738

3839
- name: Determine version
39-
run: echo "POM_VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec | sed -e 's/-SNAPSHOT//')" >> $GITHUB_ENV
40+
run: echo "POM_VERSION=$(./mvnw -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec | sed -e 's/-SNAPSHOT//')" >> $GITHUB_ENV
4041

4142
- name: Import GPG key
4243
id: import_gpg
@@ -51,7 +52,7 @@ jobs:
5152
git config user.name "GitHub Actions"
5253
5354
- name: Create release
54-
run: mvn --settings .github/maven-settings.xml release:prepare release:perform -DskipTests -Prelease -B
55+
run: ./mvnw --settings .github/maven-settings.xml release:prepare release:perform -DskipTests -Prelease -B
5556
env:
5657
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
5758
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
@@ -66,4 +67,5 @@ jobs:
6667
token: ${{ secrets.GITHUB_TOKEN }}
6768
tag: ${{ env.POM_VERSION }}
6869
artifacts: spt-development-logging-spring-boot-autoconfigure/target/spt-development-logging-spring-boot-autoconfigure-${{ env.POM_VERSION }}.jar,spt-development-logging-spring-boot-starter/target/spt-development-logging-spring-boot-starter-${{ env.POM_VERSION }}.jar
69-
artifactContentType: application/java-archive
70+
artifactContentType: application/java-archive
71+
bodyFile: documentation/releases/release-${{ env.POM_VERSION }}.md

.github/workflows/latest-versions.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Latest Versions Check
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
versions:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- name: Set up JDK 21
13+
uses: oracle-actions/setup-java@v1
14+
with:
15+
website: jdk.java.net
16+
release: 21
17+
- run: ./mvnw clean versions:update-properties scm:check-local-modification -U -B

.github/workflows/owasp.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: OWASP Dependency Check
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
owasp:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- name: Set up JDK 21
13+
uses: oracle-actions/setup-java@v1
14+
with:
15+
website: jdk.java.net
16+
release: 21
17+
- run: ./mvnw clean dependency-check:check -B

.mvn/wrapper/maven-wrapper.properties

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.4/apache-maven-3.9.4-bin.zip
18+
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Building locally
3434
To build the library, run the following maven command:
3535

3636
```shell
37-
$ mvn clean install
37+
$ ./mvnw clean install
3838
```
3939

4040
Release
File renamed without changes.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## General
2+
3+
* Added additional quality gates to build.
4+
5+
## Dependencies
6+
7+
* Aligned dependencies with Spring Boot 3.1.5

0 commit comments

Comments
 (0)