diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4c27696b..4b4ad1ec 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,13 +34,49 @@ jobs: steps: - uses: actions/checkout@v4 name: checkout + - uses: actions/setup-java@v4 name: set up jdk ${{matrix.java.version}} with: - distribution: temurin - java-version: ${{matrix.java.version}} - cache: maven - - name: validate format - run: mvn -f pom.xml -B ${{matrix.java.opts}} formatter:validate + distribution: 'temurin' + java-version: ${{matrix.java}} + cache: 'maven' + cache-dependency-path: '**/pom.xml' + - name: build with maven - run: mvn -f pom.xml -B verify ${{matrix.java.opts}} + run: mvn -B formatter:validate verify ${{matrix.java.opts}} --file pom.xml + + - uses: actions/upload-artifact@v4 + name: tck-report + with: + name: tck-report-java-${{matrix.java}} + path: testsuite/tck/target/surefire-reports + + quality: + needs: [build] + if: github.event_name == 'push' && github.repository_owner == 'smallrye' + runs-on: ubuntu-latest + name: quality + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: 11 + cache: 'maven' + cache-dependency-path: '**/pom.xml' + + - name: build with docs and coverage + run: mvn verify -Pcoverage javadoc:javadoc + + - uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: 17 + + - name: sonar + run: mvn sonar:sonar -Psonar -Dsonar.token=${{secrets.SONAR_TOKEN}} diff --git a/README.adoc b/README.adoc index 74d773eb..5f301500 100644 --- a/README.adoc +++ b/README.adoc @@ -1,9 +1,9 @@ :microprofile-context: https://github.com/eclipse/microprofile-context-propagation/ :ci: https://github.com/smallrye/smallrye-context-propagation/actions?query=workflow%3A%22SmallRye+Build%22 -:sonar: https://sonarcloud.io/dashboard?id=smallrye_smallrye-context-propagation +:sonar: https://sonarcloud.io/dashboard?id=io.smallrye%3Asmallrye-context-propagation image:https://github.com/smallrye/smallrye-context-propagation/workflows/SmallRye%20Build/badge.svg?branch=main[link={ci}] -image:https://sonarcloud.io/api/project_badges/measure?project=smallrye_smallrye-context-propagation&metric=alert_status["Quality Gate Status", link={sonar}] +image:https://sonarcloud.io/api/project_badges/measure?project=io.smallrye%3Asmallrye-context-propagation&metric=alert_status["Quality Gate Status", link={sonar}] image:https://img.shields.io/github/license/smallrye/smallrye-context-propagation.svg["License", link="http://www.apache.org/licenses/LICENSE-2.0"] image:https://img.shields.io/maven-central/v/io.smallrye/smallrye-context-propagation?color=green[] diff --git a/pom.xml b/pom.xml index 594149b9..597e8985 100644 --- a/pom.xml +++ b/pom.xml @@ -2,11 +2,11 @@ 4.0.0 - - io.smallrye - smallrye-parent - 45 - + + io.smallrye + smallrye-parent + 45 + smallrye-context-propagation-parent 2.1.3-SNAPSHOT @@ -37,25 +37,23 @@ - target/site/jacoco/jacoco.xml + 1.3 + 3.0.2 - 1.3 - 3.0.2 + 5.0.SP3 + 3.5.0.Final + 2.0.1 + 6.0.1.Final + 2.2.21 + 1.3.8 - 5.0.SP3 - 3.5.0.Final - 2.0.1 - 6.0.1.Final - 2.2.21 - 1.3.8 - - false + false - + - Stéphane Épardaud - stef@epardaud.fr + Stéphane Épardaud + stef@epardaud.fr Matěj Novotný @@ -176,31 +174,6 @@ 11 - - org.apache.maven.plugins - maven-release-plugin - ${version.release.plugin} - - true - @{project.version} - verify - false - true - false - -DskipTests ${release.arguments} - - - - org.apache.maven.plugins - maven-gpg-plugin - ${version.gpg.plugin} - - - --pinentry-mode - loopback - - - @@ -230,6 +203,17 @@ - + + sonar + + SmallRye Context Propagation + io.smallrye:smallrye-context-propagation + ${project.artifactId} + + + ${maven.multiModuleProjectDirectory}/coverage/target/site/jacoco-aggregate/jacoco.xml + + +