forked from sigstore/timestamp-authority
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
JasonPowr
committed
Dec 6, 2023
1 parent
bb9f548
commit 32cca18
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: Task | ||
metadata: | ||
name: go-unit-test | ||
annotations: | ||
tekton.dev/title: "Go Unit Test Task" | ||
spec: | ||
workspaces: | ||
- name: source | ||
steps: | ||
- name: run-tests | ||
image: registry.access.redhat.com/ubi9/go-toolset@sha256:c3a9c5c7fb226f6efcec2424dd30c38f652156040b490c9eca5ac5b61d8dc3ca | ||
workingDir: $(workspaces.source.path)/source | ||
script: | | ||
#!/usr/bin/env sh | ||
CGO_ENABLED=0 go build -buildvcs=false -trimpath -o bin/timestamp-cli ./cmd/timestamp-cli | ||
CGO_ENABLED=0 go build -buildvcs=false -trimpath -o bin/timestamp-server ./cmd/timestamp-server | ||
go test ./... | ||
# This file bundles the unit tests for the timestamp-authority. | ||
# If any changes are made to this file, it must be pushed to Quay using the following command: | ||
# 'tkn bundle push quay.io/securesign/tsa-unit-test:latest -f .tekton/tsa-unit-test.yaml'. | ||
# This will generate a new SHA for the bundle. | ||
# Ensure that this new SHA is updated in the pull and push pipeline files for each component. |