-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: run integration tests additionally on v7 branch (#316)
Integration tests were only running on the `v8` branch since (apparently) cron schedule only works for the `default` branch. This commit explicitly uses a matrix build to trigger v7/v8 integration tests: `{v7, v8} x {production, staging}`. I've also added a manual job to make it easy to target a particular branch+environment.
- Loading branch information
1 parent
5c76f71
commit 17af73f
Showing
2 changed files
with
30 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 }} |