ci(github-actions): ignore certain paths on push workflow, add COMMON_MAVEN_OPTS
Some checks are pending
Build, test and publish the Quarkus libraries / build (push) Waiting to run

This commit is contained in:
Jorge Bornhausen 2024-12-09 13:34:01 +01:00
parent 27de665903
commit 9d28933116
Signed by: jorge.bornhausen
SSH key fingerprint: SHA256:X2ootOwvCeP4FoNfmVUFIKIbhq95tAgnt7Oqg3x+lfs

View file

@ -1,5 +1,15 @@
name: Build, test and publish the Quarkus libraries
on: [ push, workflow_dispatch ]
on:
push:
paths-ignore:
- '.gitattributes'
- '.gitignore'
- '.github/renovate.json5'
- 'docs/**'
- 'README.md'
workflow_dispatch:
env:
COMMON_MAVEN_OPTS: "-e -B --fae"
jobs:
build:
@ -37,15 +47,15 @@ jobs:
run: chmod +x mvnw
- name: Build and run tests
run: ./mvnw verify
run: ./mvnw $COMMON_MAVEN_OPTS verify
- name: Analyze with Sonar
if: vars.SONAR_ENABLED == 'true'
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}
run: ./mvnw org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=quarkus-commons -Dsonar.projectName='quarkus-commons' -Dsonar.coverage.jacoco.xmlReportPaths=../**/target/jacoco-report/jacoco.xml
run: ./mvnw $COMMON_MAVEN_OPTS org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=quarkus-commons -Dsonar.projectName='quarkus-commons' -Dsonar.coverage.jacoco.xmlReportPaths=../**/target/jacoco-report/jacoco.xml
- name: Upload libs to Gitea Maven Registry
- name: Upload libs to Kvant maven registry
if: github.ref == 'refs/heads/main'
run: ./mvnw deploy -Dmaven.test.skip=true -Dmaven.javadoc.skip=true
run: ./mvnw $COMMON_MAVEN_OPTS deploy -Dmaven.test.skip=true -Dmaven.javadoc.skip=true