23
23
jobs :
24
24
25
25
downstream :
26
- name : Verify Downstream
26
+ name : Downstream Eventing
27
27
strategy :
28
28
matrix :
29
29
go-version : [1.15.x]
@@ -46,42 +46,10 @@ jobs:
46
46
run : |
47
47
go get github.com/google/go-licenses
48
48
49
- - name : Check upstream repo into onto GOPATH
50
- uses : actions/checkout@v2
51
- with :
52
- path : ./src/knative.dev/${{ github.event.repository.name }}
53
-
54
- - name : Check downstream repo into onto GOPATH
55
- uses : actions/checkout@v2
49
+ - name : Test Downstream
50
+ uses : knative-sandbox/downstream-test-go@v1
56
51
with :
57
- repository : knative/eventing # TODO: gonna hardcode for now.
58
- path : ./src/knative.dev/eventing # TODO: gonna hardcode for now.
59
-
60
-
61
- - name : Replace Downstream with Local Upstream
62
- shell : bash
63
- run : |
64
- pushd ./src/knative.dev/eventing # TODO: gonna hardcode for now.
65
- go mod edit -replace knative.dev/${{ github.event.repository.name }}=$GITHUB_WORKSPACE/src/knative.dev/${{ github.event.repository.name }}
66
- popd
52
+ upstream-module : knative.dev/pkg
53
+ downstream-repository : knative/eventing
54
+ downstream-module : knative.dev/eventing
67
55
68
- - name : Downstream Update Deps
69
- shell : bash
70
- run : |
71
- pushd ./src/knative.dev/eventing # TODO: gonna hardcode for now.
72
- ./hack/update-deps.sh
73
- popd
74
-
75
- - name : Downstream Update Codegen
76
- shell : bash
77
- run : |
78
- pushd ./src/knative.dev/eventing # TODO: gonna hardcode for now.
79
- ./hack/update-codegen.sh
80
- popd
81
-
82
- - name : Test Downstream
83
- shell : bash
84
- run : |
85
- pushd ./src/knative.dev/eventing # TODO: gonna hardcode for now.
86
- go test -race ./...
87
- popd
0 commit comments