Skip to content

Commit

Permalink
add testing resources
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonPowr committed Nov 25, 2024
1 parent 9413606 commit 30d895f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .tekton/docker-build-oci-ta-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
- name: go_unit_test
value: true
- name: go_test_command
value: cd pipeline-tests && go test ./...
value: go test ./pipeline-tests/...
pipelineRef:
resolver: git
params:
Expand Down
2 changes: 1 addition & 1 deletion .tekton/docker-build-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
- name: go_unit_test
value: true
- name: go_test_command
value: cd pipeline-tests && go test ./...
value: go test ../pipeline-tests/...
pipelineRef:
resolver: git
params:
Expand Down
7 changes: 7 additions & 0 deletions pipeline-tests/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package main

import "fmt"

func main() {
fmt.Println("Hello World!")
}
7 changes: 7 additions & 0 deletions pipeline-tests/main_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package main

import "testing"

func Test(t *testing.T) {
// This will always pass
}

0 comments on commit 30d895f

Please sign in to comment.