-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.project-keeper.yml
188 lines (173 loc) · 6.47 KB
/
.project-keeper.yml
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
sources:
- type: maven
path: jdbc-kerberos-setup-test/pom.xml
parentPom:
groupId: "com.exasol"
artifactId: "tableau-connector"
version: "${revision}"
relativePath: "../pom.xml"
advertise: false
- type: maven
path: tableau-server-GUI-tests/pom.xml
parentPom:
groupId: "com.exasol"
artifactId: "tableau-connector"
version: "${revision}"
relativePath: "../pom.xml"
- type: maven
path: pom.xml
artifacts:
- target/exasol_jdbc.taco
- target/exasol_odbc.taco
- target/tableau-exasol-connector-jdbc-${version}.taco
- target/tableau-exasol-connector-odbc-${version}.taco
- type: npm
path: javascript-test/package.json
version:
fromSource: pom.xml
excludes:
- regex: "(?s)E-PK-CORE-62: The project's README\\.md does not contain a valid badges block\\. Please add or replace the following badges.*"
- "E-PK-CORE-17: Missing required file: '.github/workflows/ci-build-next-java.yml'"
build:
runnerOs: ubuntu-24.04
workflows:
- name: "ci-build.yml"
stepCustomizations:
- action: INSERT_AFTER
job: build-and-test
stepId: setup-java
content:
id: setup-node
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
cache-dependency-path: "javascript-test/package-lock.json"
- action: INSERT_AFTER
job: build-and-test
stepId: setup-node
content:
name: Run JavaScript tests
id: run-javascript-tests
run: |
cd javascript-test
npm ci
npm run test
- action: INSERT_AFTER
job: build-and-test
stepId: run-javascript-tests
content:
name: Build connectors
id: build-connectors
run: ./tools/package_connector.sh
- action: INSERT_AFTER
job: build-and-test
stepId: build-connectors
content:
name: Retrieve code signing certificate
id: retrieve-code-signing-certificate
run: echo $CODE_SIGNING_CERTIFICATE_BASE64 | base64 --decode > target/cert.p12
env:
CODE_SIGNING_CERTIFICATE_BASE64: ${{ secrets.CODE_SIGNING_CERTIFICATE_BASE64 }}
- action: INSERT_AFTER
job: build-and-test
stepId: retrieve-code-signing-certificate
content:
name: Retrieve code signing certificate chain
id: retrieve-code-signing-certificate-chain
run: echo $CODE_SIGNING_CERTIFICATE_CHAIN_BASE64 | base64 --decode > target/cert_chain.p7b
env:
CODE_SIGNING_CERTIFICATE_CHAIN_BASE64: ${{ secrets.CODE_SIGNING_CERTIFICATE_CHAIN_BASE64 }}
- action: INSERT_AFTER
job: build-and-test
stepId: retrieve-code-signing-certificate-chain
content:
name: Sign connectors
id: sign-connectors
run: ./tools/sign_connector.sh target/cert.p12 target/cert_chain.p7b
env:
CODE_SIGNING_CERTIFICATE_PASSWORD: ${{ secrets.CODE_SIGNING_CERTIFICATE_PASSWORD }}
- action: REPLACE
job: build-and-test
stepId: build-pk-verify
content:
name: Project Keeper Verify
id: build-pk-verify
run: mvn --batch-mode --projects . test com.exasol:project-keeper-maven-plugin:verify
- action: INSERT_AFTER
job: build-and-test
stepId: build-pk-verify
content:
name: Generate dummy error code report
id: generate-dummy-error-code-report
run: echo '{"$schema":"https://schemas.exasol.com/error_code_report-1.0.0.json","errorCodes":[]}' > target/error_code_report.json
- action: INSERT_AFTER
job: build-and-test
stepId: sonar-analysis
content:
name: Audit NPM dependencies
id: audit-npm-dependencies
run: |
cd javascript-test
npm audit --audit-level low
npm audit signatures
- action: REPLACE
job: next-java-compatibility
stepId: build-next-java
content:
name: Run tests and build with Maven 17
id: build-next-java
run: mvn --batch-mode clean test -Djava.version=17
- name: "release.yml"
stepCustomizations:
- action: INSERT_AFTER
job: release
stepId: setup-jdks
content:
id: setup-node
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
cache-dependency-path: "javascript-test/package-lock.json"
- action: REPLACE
job: release
stepId: build
content:
name: Build connectors
id: build
run: ./tools/package_connector.sh
- action: INSERT_AFTER
job: release
stepId: build
content:
name: Retrieve code signing certificate
id: retrieve-code-signing-certificate
run: echo $CODE_SIGNING_CERTIFICATE_BASE64 | base64 --decode > target/cert.p12
env:
CODE_SIGNING_CERTIFICATE_BASE64: ${{ secrets.CODE_SIGNING_CERTIFICATE_BASE64 }}
- action: INSERT_AFTER
job: release
stepId: retrieve-code-signing-certificate
content:
name: Retrieve code signing certificate chain
id: retrieve-code-signing-certificate-chain
run: echo $CODE_SIGNING_CERTIFICATE_CHAIN_BASE64 | base64 --decode > target/cert_chain.p7b
env:
CODE_SIGNING_CERTIFICATE_CHAIN_BASE64: ${{ secrets.CODE_SIGNING_CERTIFICATE_CHAIN_BASE64 }}
- action: INSERT_AFTER
job: release
stepId: retrieve-code-signing-certificate-chain
content:
name: Sign connectors
id: sign-connectors
run: ./tools/sign_connector.sh target/cert.p12 target/cert_chain.p7b
env:
CODE_SIGNING_CERTIFICATE_PASSWORD: ${{ secrets.CODE_SIGNING_CERTIFICATE_PASSWORD }}
- action: INSERT_AFTER
job: release
stepId: build
content:
name: Generate dummy error code report
id: generate-dummy-error-code-report
run: echo '{"$schema":"https://schemas.exasol.com/error_code_report-1.0.0.json","errorCodes":[]}' > target/error_code_report.json