Skip to content

Commit 7b40dc1

Browse files
SONARXML-258 Migrate QA task to GitHub action (#358)
1 parent e3f6670 commit 7b40dc1

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/build.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,52 @@ jobs:
6666
artifactory-reader-role: private-reader
6767
artifactory-deployer-role: qa-deployer
6868

69+
plugin-qa:
70+
runs-on: github-ubuntu-latest-s # Custom GitHub-hosted runner for public repos
71+
name: Plugin QA (${{ matrix.sq_version }})
72+
needs:
73+
- get-build-number
74+
- build-linux
75+
permissions:
76+
id-token: write # Required for Vault OIDC authentication
77+
contents: write # Required for repository access
78+
strategy:
79+
matrix:
80+
sq_version: [LATEST_RELEASE, DEV]
81+
env:
82+
BUILD_NUMBER: ${{ needs.get-build-number.outputs.build-number }}
83+
steps:
84+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
85+
- uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0
86+
with:
87+
version: 2025.7.12
88+
- name: Vault
89+
id: secrets
90+
uses: SonarSource/vault-action-wrapper@v3
91+
with:
92+
secrets: |
93+
development/github/token/licenses-ro token | GITHUB_TOKEN;
94+
development/artifactory/token/{REPO_OWNER_NAME_DASH}-private-reader access_token | ARTIFACTORY_ACCESS_TOKEN;
95+
- name: Configure Maven
96+
uses: SonarSource/ci-github-actions/config-maven@v1
97+
with:
98+
artifactory-reader-role: private-reader
99+
env:
100+
GITHUB_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).GITHUB_TOKEN }}
101+
ARTIFACTORY_ACCESS_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).ARTIFACTORY_ACCESS_TOKEN }}
102+
- name: Plugin QA Tests
103+
env:
104+
GITHUB_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).GITHUB_TOKEN }}
105+
ARTIFACTORY_ACCESS_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).ARTIFACTORY_ACCESS_TOKEN }}
106+
run: |
107+
cd its/plugin
108+
mvn verify -Pit-plugin -Dsonar.runtimeVersion=${{ matrix.sq_version }} -Dmaven.test.redirectTestOutputToFile=false -B -e -V
109+
69110
promote:
70111
needs:
71112
- build-linux
72113
- build-windows
114+
- plugin-qa
73115
runs-on: github-ubuntu-latest-s # Custom GitHub-hosted runner for public repos
74116
name: Promote
75117
permissions:

0 commit comments

Comments
 (0)