Skip to content

Commit

Permalink
Update CI Build
Browse files Browse the repository at this point in the history
  • Loading branch information
radcortez committed Oct 16, 2024
1 parent fa4d6f6 commit b75c299
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 53 deletions.
48 changes: 42 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
4 changes: 2 additions & 2 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -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[]

Expand Down
74 changes: 29 additions & 45 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>io.smallrye</groupId>
<artifactId>smallrye-parent</artifactId>
<version>45</version>
</parent>
<parent>
<groupId>io.smallrye</groupId>
<artifactId>smallrye-parent</artifactId>
<version>45</version>
</parent>

<artifactId>smallrye-context-propagation-parent</artifactId>
<version>2.1.3-SNAPSHOT</version>
Expand Down Expand Up @@ -37,25 +37,23 @@
</scm>

<properties>
<sonar.coverage.jacoco.xmlReportPaths>target/site/jacoco/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
<version.microprofile.context-propagation>1.3</version.microprofile.context-propagation>
<version.microprofile.config>3.0.2</version.microprofile.config>

<version.microprofile.context-propagation>1.3</version.microprofile.context-propagation>
<version.microprofile.config>3.0.2</version.microprofile.config>
<version.weld-api>5.0.SP3</version.weld-api>
<version.jboss.threads>3.5.0.Final</version.jboss.threads>
<version.jta>2.0.1</version.jta>
<version.narayana>6.0.1.Final</version.narayana>
<version.rxjava2>2.2.21</version.rxjava2>
<version.rxjava1>1.3.8</version.rxjava1>

<version.weld-api>5.0.SP3</version.weld-api>
<version.jboss.threads>3.5.0.Final</version.jboss.threads>
<version.jta>2.0.1</version.jta>
<version.narayana>6.0.1.Final</version.narayana>
<version.rxjava2>2.2.21</version.rxjava2>
<version.rxjava1>1.3.8</version.rxjava1>

<maven.javadoc.failOnWarnings>false</maven.javadoc.failOnWarnings>
<maven.javadoc.failOnWarnings>false</maven.javadoc.failOnWarnings>
</properties>

<developers>
<developers>
<developer>
<name>Stéphane Épardaud</name>
<email>stef@epardaud.fr</email>
<name>Stéphane Épardaud</name>
<email>stef@epardaud.fr</email>
</developer>
<developer>
<name>Matěj Novotný</name>
Expand Down Expand Up @@ -176,31 +174,6 @@
<release>11</release>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>${version.release.plugin}</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<tagNameFormat>@{project.version}</tagNameFormat>
<preparationGoals>verify</preparationGoals>
<pushChanges>false</pushChanges>
<localCheckout>true</localCheckout>
<remoteTagging>false</remoteTagging>
<arguments>-DskipTests ${release.arguments}</arguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${version.gpg.plugin}</version>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</plugin>
</plugins>
</build>

Expand Down Expand Up @@ -230,6 +203,17 @@
</plugins>
</build>
</profile>

<profile>
<id>sonar</id>
<properties>
<sonar.projectName>SmallRye Context Propagation</sonar.projectName>
<sonar.projectKey>io.smallrye:smallrye-context-propagation</sonar.projectKey>
<sonar.moduleKey>${project.artifactId}</sonar.moduleKey>
<!--suppress UnresolvedMavenProperty -->
<sonar.coverage.jacoco.xmlReportPaths>
${maven.multiModuleProjectDirectory}/coverage/target/site/jacoco-aggregate/jacoco.xml
</sonar.coverage.jacoco.xmlReportPaths>
</properties>
</profile>
</profiles>
</project>

0 comments on commit b75c299

Please sign in to comment.