Skip to content

Commit bebbec1

Browse files
Trying to get the build to run properly
1 parent d9fe369 commit bebbec1

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

.pipeline-config.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ setup:
44
skip: true
55

66
test:
7-
abort_on_failure: false
7+
abort_on_failure: true
88
image: icr.io/continuous-delivery/pipeline/pipeline-base-ubi9:latest
99
script: |
1010
#!/usr/bin/env bash
@@ -26,9 +26,7 @@ test:
2626
curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -d -b $GOPATH/bin
2727
go version
2828
# Actual Tests
29-
go vet $(go list ./... | grep -v "fixtures" | grep -v "vendor")
30-
go test $(go list ./... | grep -v "fixtures" | grep -v "vendor")
31-
gosec -exclude-dir=fixture -exclude-dir=plugin/resources -quiet ./...
29+
"./bin/gotest.sh"
3230
3331
# See .cra/cveignore file for skipped checks.
3432
compliance-checks:

bin/gotest.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
!#/bin/bash
2+
3+
go vet $(go list ./... | grep -v "fixtures" | grep -v "vendor")
4+
go test $(go list ./... | grep -v "fixtures" | grep -v "vendor")
5+
gosec -exclude-dir=fixture -exclude-dir=plugin/resources -quiet ./...
6+
go build

0 commit comments

Comments
 (0)