Skip to content

Commit e80ab23

Browse files
Migrate QA task to GitHub action
1 parent 2b98fef commit e80ab23

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/build.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,47 @@ jobs:
6565
artifactory-reader-role: private-reader
6666
artifactory-deployer-role: qa-deployer
6767

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

0 commit comments

Comments
 (0)