lint-scan test

This commit is contained in:
franz.germann1 2024-10-25 11:09:34 +02:00
parent c8b676b52f
commit 25f1964e13
2 changed files with 7 additions and 5 deletions

View file

@ -127,8 +127,8 @@ spec:
command: [sh, -c]
args:
- |
cd /shared-data/repo && \
go test ./... -v > test-results.txt; \
cd /shared-data/repo
go test ./... -v > test-results.txt
cat test-results.txt
volumeMounts:
- name: shared-data
@ -143,9 +143,11 @@ spec:
command: [sh, -c]
args:
- |
cd /shared-data/repo && \
golangci-lint run ./... --issues-exit-code --out-format=json --timeout 5m > lint-results.json; \
cd /shared-data/repo
golangci-lint run ./... --issues-exit-code --out-format=json --timeout 5m > lint-results.json
result=$?
cat lint-results.json
exit $result
volumeMounts:
- name: shared-data
mountPath: /shared-data