-
Notifications
You must be signed in to change notification settings - Fork 24
97 lines (89 loc) · 3.18 KB
/
build.yml
File metadata and controls
97 lines (89 loc) · 3.18 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@5228313ee0372e111a38da051671ca30fc5a96db # v3.6.3
with:
version: 2026.3.14
- uses: SonarSource/ci-github-actions/build-maven@c15f3733837c5ebd0f04a676feb1e18fae147cd5 # 1.3.27
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@5228313ee0372e111a38da051671ca30fc5a96db # v3.6.3
with:
version: 2026.3.14
- uses: SonarSource/ci-github-actions/build-maven@c15f3733837c5ebd0f04a676feb1e18fae147cd5 # 1.3.27
with:
maven-args: -Dcommercial -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@df6247429542221bc30d46a036ee47af1102c451 # v2.7.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@5228313ee0372e111a38da051671ca30fc5a96db # v3.6.3
with:
version: 2026.3.14
- uses: SonarSource/ci-github-actions/build-maven@c15f3733837c5ebd0f04a676feb1e18fae147cd5 # 1.3.27
with:
artifactory-reader-role: private-reader
artifactory-deployer-role: qa-deployer
sonar-platform: none
maven-args: -B -e -V -Dcommercial -Dmaven.test.redirectTestOutputToFile=false
- name: Generate test report
uses: dorny/test-reporter@df6247429542221bc30d46a036ee47af1102c451 # v2.7.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@c15f3733837c5ebd0f04a676feb1e18fae147cd5 # 1.3.27
with:
promote-pull-request: true