Skip to content

Commit 81d4d96

Browse files
committed
ci: Cover 'core' tests in tekton on all runtimes
Signed-off-by: Ferenc Géczi <[email protected]>
1 parent 73302e9 commit 81d4d96

File tree

2 files changed

+37
-27
lines changed

2 files changed

+37
-27
lines changed

.tekton/pipeline.yaml

+34-1
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,44 @@ spec:
3030
- name: gemfile
3131
value:
3232
- "gemfiles/rubocop_162.gemfile"
33+
- name: configuration
34+
value:
35+
- "lint"
3336
taskRef:
34-
name: ruby-tracer-lint-task
37+
name: ruby-tracer-unittest-default-libraries-task
38+
workspaces:
39+
- name: task-pvc
40+
workspace: ruby-tracer-ci-pipeline-pvc
41+
- name: core
42+
runAfter:
43+
- clone
44+
matrix:
45+
params:
46+
- name: imageDigest
47+
value:
48+
# 3.0.6-bullseye
49+
- "sha256:3166618469ad8a3190d80f43b322818fafb4bfac0b4882255eee3346af2a0a35"
50+
# 3.1.4-bookworm
51+
- "sha256:ec69284bcbceb0a23ffc070ef2e0e8eb0fe495c20efbd51846b103338c3da1e4"
52+
# 3.2.3-bookworm
53+
- "sha256:007d2edd515f9cfc8c5c571486aca4fc4a25c903d004decee302961bb8c636ed"
54+
# 3.3.1-bookworm
55+
- "sha256:5cf0004738f54bd67e4c4316394208ca38a6726eda7a1b0586d95601aad86e5d"
56+
- name: gemfile
57+
value:
58+
- "./Gemfile"
59+
- name: configuration
60+
value:
61+
- "core"
62+
taskRef:
63+
name: ruby-tracer-unittest-default-libraries-task
3564
workspaces:
3665
- name: task-pvc
3766
workspace: ruby-tracer-ci-pipeline-pvc
3867
- name: unittest-default-ruby-30
3968
runAfter:
4069
- lint
70+
- core
4171
matrix:
4272
params:
4373
- name: imageDigest
@@ -65,6 +95,9 @@ spec:
6595
- "./gemfiles/sinatra_40.gemfile"
6696
- "./gemfiles/shoryuken_50.gemfile"
6797
- "./gemfiles/shoryuken_60.gemfile"
98+
- name: configuration
99+
value:
100+
- "libraries"
68101
taskRef:
69102
name: ruby-tracer-unittest-default-libraries-task
70103
workspaces:

.tekton/task.yaml

+3-26
Original file line numberDiff line numberDiff line change
@@ -273,42 +273,19 @@ spec:
273273
params:
274274
- name: imageDigest
275275
type: string
276-
- name: gemfile
277-
type: string
278-
workspaces:
279-
- name: task-pvc
280-
mountPath: /workspace
281-
steps:
282-
- name: unittest
283-
image: ruby@$(params.imageDigest)
284-
env:
285-
- name: TEST_CONFIGURATION
286-
value: libraries
287-
- name: BUNDLE_GEMFILE
288-
value: $(params.gemfile)
289-
workingDir: /workspace/ruby-sensor/
290-
command:
291-
- /workspace/ruby-sensor/.tekton/run_unittests.sh
292-
---
293-
apiVersion: tekton.dev/v1
294-
kind: Task
295-
metadata:
296-
name: ruby-tracer-lint-task
297-
spec:
298-
params:
299-
- name: imageDigest
276+
- name: configuration
300277
type: string
301278
- name: gemfile
302279
type: string
303280
workspaces:
304281
- name: task-pvc
305282
mountPath: /workspace
306283
steps:
307-
- name: lint
284+
- name: unittest
308285
image: ruby@$(params.imageDigest)
309286
env:
310287
- name: TEST_CONFIGURATION
311-
value: lint
288+
value: $(params.configuration)
312289
- name: BUNDLE_GEMFILE
313290
value: $(params.gemfile)
314291
workingDir: /workspace/ruby-sensor/

0 commit comments

Comments
 (0)