ci(github-actions): use only .github/ for consistency, replace host secrets with vars
All checks were successful
Build, test and publish the Quarkus libraries / build (push) Successful in 2m29s
All checks were successful
Build, test and publish the Quarkus libraries / build (push) Successful in 2m29s
This commit is contained in:
parent
2cdf40e136
commit
e6b6d5f1e7
2 changed files with 2 additions and 2 deletions
1
.github/CODEOWNERS
vendored
Normal file
1
.github/CODEOWNERS
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
* @jorge.bornhausen
|
51
.github/workflows/build.yml
vendored
Normal file
51
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,51 @@
|
|||
name: Build, test and publish the Quarkus libraries
|
||||
on: [ push, workflow_dispatch ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout the code
|
||||
uses: https://github.com/actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
||||
|
||||
- name: Set up JDK 21
|
||||
uses: https://github.com/actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: '21'
|
||||
|
||||
- name: Configure Maven CI/CD settings
|
||||
uses: https://github.com/s4u/maven-settings-action@v3.1.0
|
||||
with:
|
||||
servers: |
|
||||
[{
|
||||
"id": "kvant",
|
||||
"configuration": {
|
||||
"httpHeaders": {
|
||||
"property": {
|
||||
"name": "Authorization",
|
||||
"value": "token ${{ secrets.PHOENIX_PACKAGE_WRITER_TOKEN }}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}]
|
||||
|
||||
- name: Make maven wrapper executable
|
||||
run: chmod +x mvnw
|
||||
|
||||
- name: Build and run tests
|
||||
run: ./mvnw 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
|
||||
|
||||
- name: Upload libs to Gitea Maven Registry
|
||||
if: github.ref == 'refs/heads/main'
|
||||
run: ./mvnw deploy -Dmaven.test.skip=true -Dmaven.javadoc.skip=true
|
Loading…
Add table
Add a link
Reference in a new issue