Skip to content

Commit

Permalink
ci: run integration tests additionally on v7 branch (#316)
Browse files Browse the repository at this point in the history
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
cwaldren-ld authored Feb 13, 2024
1 parent 5c76f71 commit 17af73f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/daily-integration-tests.yml
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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 }}
26 changes: 26 additions & 0 deletions .github/workflows/manual-integration-test.yml
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 }}

0 comments on commit 17af73f

Please sign in to comment.