actions/go/downstream-test
David Hadas c80a087044
rename-sandbox (#162)
2023-08-02 16:40:48 +00:00
..
README.md rename-sandbox (#162) 2023-08-02 16:40:48 +00:00
action.yaml Use extracted tools from knative.dev/toolbox (#126) 2023-03-27 17:03:57 +00:00

README.md

Downstream Test

This action allows you to target a downstream repository to upgrade with the version of the upstream repository and then run the unit tests.

This action assumes go modules and repo setup is similar to Knative and that environmental setup has already been performed.

Usage

- uses: knative/actions/go/downstream-test@main
  with:
    # Path to upstream module. For example, ./knative.dev/pkg
    # Required
    upstream-path: ""

    # Path to downstream module. For example, ./knative.dev/sample-controller
    # Required.
    downstream-path: ""

Scenarios

Test knative.dev/pkg changes are accepted by knative.dev/sample-controller

steps:
  - uses: actions/setup-go@v4
  - uses: actions/checkout@v3
    with:
      repository: knative/pkg
      path: pkg
  - name: Checkout Downstream
    uses: actions/checkout@v3
    with:
      repository: knative-extensions/sample-controller
      path: controller
  - uses: knative/actions/go/downstream-test@main
    with:
      upstream-path: pkg
      downstream-path: sample-controller