Skip to content

Commit

Permalink
Merge pull request #162 from mjholder/tekton-testing
Browse files Browse the repository at this point in the history
Run unit tests in tekton pipeline
  • Loading branch information
maknop authored Apr 29, 2024
2 parents dc051df + 6e26d26 commit 3d7ddf0
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .tekton/frontend-operator-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,49 @@ spec:
workspace: workspace
- name: basic-auth
workspace: git-auth
- name: run-unit-tests
description: run unit tests
params:
- name: SNAPSHOT
value: $(params.SNAPSHOT)
- name: NAMESPACE
value: $(params.NAMESPACE)
- name: EXPECTED_OUTPUT
value: $(params.EXPECTED_OUTPUT)
runAfter:
- clone-repository
workspaces:
- name: output
workspace: workspace
- name: basic-auth
workspace: git-auth
taskSpec:
params:
- name: SNAPSHOT
- name: NAMESPACE
- name: EXPECTED_OUTPUT
results:
- name: TEST_OUTPUT
description: Test output
steps:
- image: registry.access.redhat.com/ubi8/go-toolset:1.20.12-5.1712568462
env:
- name: SNAPSHOT
value: $(params.SNAPSHOT)
- name: NAMESPACE
value: $(params.NAMESPACE)
- name: EXPECTED_OUTPUT
value: $(params.EXPECTED_OUTPUT)
- name: GOFLAGS
value: -buildvcs=false
script: |
#!/bin/bash
set -ex
FEO_PATH="/workspace/output/source"
cd ${FEO_PATH}
make test
- name: prefetch-dependencies
params:
- name: input
Expand Down

0 comments on commit 3d7ddf0

Please sign in to comment.