-
Notifications
You must be signed in to change notification settings - Fork 24
97 lines (89 loc) · 3.15 KB
/
build.yml
File metadata and controls
97 lines (89 loc) · 3.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: Build
on:
push:
branches:
- master
- branch-*
- dogfood-*
pull_request:
merge_group:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
# Required permissions for Vault OIDC and repo operations
permissions:
id-token: write
contents: write
env:
CACHE_BACKEND: s3
jobs:
build:
runs-on: github-ubuntu-latest-s
name: Build
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1
with:
version: 2026.3.17
- uses: SonarSource/ci-github-actions/build-maven@d8400ed2a8b8019e4dfe43d612a7eb6280334968 # 1.3.29
with:
maven-args: -Dmaven.test.skip=true -Dsonar.skip=true
deploy-pull-request: true
artifactory-reader-role: private-reader
artifactory-deployer-role: qa-deployer
qa-linux:
needs: [ build ]
runs-on: github-ubuntu-latest-s
name: QA Linux
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1
with:
version: 2026.3.17
- uses: SonarSource/ci-github-actions/build-maven@d8400ed2a8b8019e4dfe43d612a7eb6280334968 # 1.3.29
with:
maven-args: -Dmaven.install.skip=true -Dmaven.deploy.skip=true -P-deploy-sonarsource,-release,-sign
artifactory-deployer-role: qa-deployer
artifactory-reader-role: private-reader
- name: Generate test report
uses: dorny/test-reporter@a43b3a5f7366b97d083190328d2c652e1a8b6aa2 # v3.0.0
if: ${{ !cancelled() }}
with:
name: QA Linux Test Report
reporter: java-junit
path: '**/target/surefire-reports/TEST-*.xml'
list-suites: failed
list-tests: failed
qa-windows:
needs: [ build ]
runs-on: github-windows-latest-s
name: QA Windows
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1
with:
version: 2026.3.17
- uses: SonarSource/ci-github-actions/build-maven@d8400ed2a8b8019e4dfe43d612a7eb6280334968 # 1.3.29
with:
artifactory-reader-role: private-reader
artifactory-deployer-role: qa-deployer
sonar-platform: none
maven-args: -B -e -V -Dmaven.test.redirectTestOutputToFile=false
- name: Generate test report
uses: dorny/test-reporter@a43b3a5f7366b97d083190328d2c652e1a8b6aa2 # v3.0.0
if: ${{ !cancelled() }}
with:
name: QA Linux Test Report
reporter: java-junit
path: '**/target/surefire-reports/TEST-*.xml'
list-suites: failed
list-tests: failed
promote:
needs: [ build, qa-linux, qa-windows ]
runs-on: github-ubuntu-latest-s
name: Promote
steps:
- uses: SonarSource/ci-github-actions/promote@d8400ed2a8b8019e4dfe43d612a7eb6280334968 # 1.3.29
with:
promote-pull-request: true