diff --git a/.github/workflows/daily-integration-tests.yml b/.github/workflows/daily-integration-tests.yml index 7cd96149..30cc80df 100644 --- a/.github/workflows/daily-integration-tests.yml +++ b/.github/workflows/daily-integration-tests.yml @@ -1,13 +1,9 @@ -name: 'Integration Tests' +name: 'Daily Integration Tests' on: workflow_dispatch: inputs: go-version: - description: "Go version to use for building Relay." - required: false - type: string - branch: - description: "Branch to test." + description: "Go version to use for building Relay (leave empty for latest defined in repo.)" required: false type: string @@ -25,9 +21,10 @@ jobs: fail-fast: false matrix: environment: ['staging', 'production'] + branch: ['v7', 'v8'] uses: ./.github/workflows/integration-test.yml with: environment: ${{ matrix.environment }} go-version: ${{ inputs.go-version != '' && inputs.go-version || needs.go-versions.outputs.latest }} - branch: ${{ inputs.branch }} + branch: ${{ matrix.branch }} diff --git a/.github/workflows/manual-integration-test.yml b/.github/workflows/manual-integration-test.yml new file mode 100644 index 00000000..07fd23be --- /dev/null +++ b/.github/workflows/manual-integration-test.yml @@ -0,0 +1,26 @@ +name: 'Manual Integration Tests' +on: + workflow_dispatch: + inputs: + go-version: + description: "Go version to use for building Relay (leave empty for latest defined in repo.)" + required: false + type: string + environment: + description: "The environment to test against." + type: choice + options: + - 'staging' + - 'production' + +jobs: + go-versions: + uses: ./.github/workflows/go-versions.yml + + integration-test: + needs: go-versions + uses: ./.github/workflows/integration-test.yml + with: + environment: ${{ inputs.environment }} + go-version: ${{ inputs.go-version != '' && inputs.go-version || needs.go-versions.outputs.latest }} + branch: ${{ github.ref }}