Skip to content

Commit 1f37f51

Browse files
author
Scott Nichols
committed
use the downstream-test-go action
1 parent aab24fd commit 1f37f51

File tree

1 file changed

+6
-38
lines changed

1 file changed

+6
-38
lines changed

.github/workflows/knative-downstream.yaml

Lines changed: 6 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ on:
2323
jobs:
2424

2525
downstream:
26-
name: Verify Downstream
26+
name: Downstream Eventing
2727
strategy:
2828
matrix:
2929
go-version: [1.15.x]
@@ -46,42 +46,10 @@ jobs:
4646
run: |
4747
go get github.com/google/go-licenses
4848
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
5651
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
6755

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

Comments
 (0)