Skip to content

Commit b2c1cff

Browse files
SCANCLI-200 Migrate to GitHub Actions
1 parent 7da6fc3 commit b2c1cff

File tree

5 files changed

+132
-142
lines changed

5 files changed

+132
-142
lines changed

.cirrus.star

Lines changed: 0 additions & 4 deletions
This file was deleted.

.cirrus.yml

Lines changed: 0 additions & 138 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- branch-*
7+
- dogfood-*
8+
pull_request:
9+
merge_group:
10+
workflow_dispatch:
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
build:
18+
runs-on: github-ubuntu-latest-s
19+
name: Build
20+
permissions:
21+
id-token: write
22+
contents: write
23+
steps:
24+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
25+
with:
26+
fetch-depth: 0
27+
- uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1
28+
with:
29+
version: 2025.7.12
30+
- uses: SonarSource/ci-github-actions/build-maven@v1
31+
with:
32+
deploy-pull-request: true
33+
maven-args: -Pdist-linux-x64,dist-linux-aarch64,dist-windows-x64,dist-macosx-x64,dist-macosx-aarch64
34+
artifactory-reader-role: private-reader
35+
artifactory-deployer-role: qa-deployer
36+
37+
38+
linux-qa:
39+
needs: build
40+
runs-on: github-ubuntu-latest-s
41+
name: Linux QA
42+
permissions:
43+
id-token: write
44+
contents: read
45+
strategy:
46+
fail-fast: false
47+
matrix:
48+
sq_version:
49+
- LATEST_RELEASE[9.9]
50+
- LATEST_RELEASE
51+
- DEV
52+
steps:
53+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
54+
- uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1
55+
with:
56+
version: 2025.7.12
57+
58+
- uses: SonarSource/ci-github-actions/config-maven@v1
59+
with:
60+
artifactory-reader-role: private-reader
61+
cache-paths: |
62+
~/.m2/repository
63+
64+
- name: Run Integration Tests
65+
env:
66+
SQ_VERSION: ${{ matrix.sq_version }}
67+
run: |
68+
cd it
69+
mvn -B -e -Dsonar.runtimeVersion="${SQ_VERSION}" -Dmaven.test.redirectTestOutputToFile=false verify
70+
71+
windows-qa:
72+
needs: build
73+
runs-on: github-windows-latest-s
74+
name: Windows QA
75+
permissions:
76+
id-token: write
77+
contents: read
78+
strategy:
79+
fail-fast: false
80+
matrix:
81+
sq_version:
82+
- LATEST_RELEASE[9.9]
83+
- LATEST_RELEASE
84+
- DEV
85+
steps:
86+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
87+
- uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1
88+
with:
89+
version: 2025.7.12
90+
91+
- uses: SonarSource/ci-github-actions/config-maven@v1
92+
with:
93+
artifactory-reader-role: private-reader
94+
cache-paths: |
95+
~/.m2/repository
96+
97+
- name: Run Integration Tests
98+
shell: bash
99+
env:
100+
SQ_VERSION: ${{ matrix.sq_version }}
101+
run: |
102+
cd it
103+
mvn -B -e -Dsonar.runtimeVersion="${SQ_VERSION}" -Dmaven.test.redirectTestOutputToFile=false verify
104+
105+
promote:
106+
needs:
107+
- linux-qa
108+
- windows-qa
109+
runs-on: github-ubuntu-latest-s
110+
name: Promote
111+
permissions:
112+
id-token: write
113+
contents: write
114+
steps:
115+
- uses: SonarSource/ci-github-actions/promote@v1
116+
with:
117+
promote-pull-request: true

.github/workflows/pr_cleanup.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Cleanup PR Resources
2+
on:
3+
pull_request:
4+
types: [ closed ]
5+
jobs:
6+
cleanup:
7+
runs-on: sonar-xs
8+
permissions:
9+
actions: write
10+
steps:
11+
- uses: SonarSource/ci-github-actions/pr_cleanup@v1

mise.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[tools]
2+
java = "17.0"
3+
maven = "3.9"
4+
node = "18.17.0"

0 commit comments

Comments
 (0)