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
Some checks are pending
Build, test and publish the Quarkus libraries / build (push) Waiting to run
This commit is contained in:
parent
27de665903
commit
9d28933116
1 changed files with 15 additions and 5 deletions
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue