CI: run e2e tests as a matrix (#103382)
* run e2e tests as a matrix * add old-suite/ * remove old-arch input * run without quotes * Update codeowners * remove e2e-suite-various from codeowners * ?
This commit is contained in:
@@ -39,10 +39,33 @@ jobs:
|
||||
retention-days: 1
|
||||
name: ${{ steps.artifact.outputs.artifact }}
|
||||
path: grafana.tar.gz
|
||||
misc-suite:
|
||||
e2e-matrix:
|
||||
name: ${{ matrix.suite }}
|
||||
strategy:
|
||||
matrix:
|
||||
suite:
|
||||
- various-suite
|
||||
- dashboards-suite
|
||||
- smoke-tests-suite
|
||||
- panels-suite
|
||||
needs:
|
||||
- build-grafana
|
||||
uses: ./.github/workflows/e2e-suite-various.yml
|
||||
name: Various Suite
|
||||
uses: ./.github/workflows/run-e2e-suite.yml
|
||||
with:
|
||||
package: ${{ needs.build-grafana.outputs.artifact }}
|
||||
suite: ${{ matrix.suite }}
|
||||
e2e-matrix-old-arch:
|
||||
name: ${{ matrix.suite }} (old arch)
|
||||
strategy:
|
||||
matrix:
|
||||
suite:
|
||||
- old-arch/various-suite
|
||||
- old-arch/dashboards-suite
|
||||
- old-arch/smoke-tests-suite
|
||||
- old-arch/panels-suite
|
||||
needs:
|
||||
- build-grafana
|
||||
uses: ./.github/workflows/run-e2e-suite.yml
|
||||
with:
|
||||
package: ${{ needs.build-grafana.outputs.artifact }}
|
||||
suite: ${{ matrix.suite }}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
name: suites / various
|
||||
name: e2e suite
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
@@ -6,6 +6,9 @@ on:
|
||||
package:
|
||||
type: string
|
||||
required: true
|
||||
suite:
|
||||
type: string
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
main:
|
||||
@@ -16,12 +19,14 @@ jobs:
|
||||
with:
|
||||
name: ${{ inputs.package }}
|
||||
- uses: dagger/dagger-for-github@8.0.0
|
||||
if: inputs.old-arch == false
|
||||
with:
|
||||
verb: run
|
||||
args: go run ./pkg/build/e2e --package=grafana.tar.gz --suite=various-suite
|
||||
args: go run ./pkg/build/e2e --package=grafana.tar.gz --suite=${{ inputs.suite }}
|
||||
- run: echo "suite=$(echo ${{ inputs.suite }} | sed 's/\//-/g')" >> $GITHUB_ENV
|
||||
- uses: actions/upload-artifact@v4
|
||||
if: always()
|
||||
if: ${{ always() && inputs.old-arch != true }}
|
||||
with:
|
||||
name: e2e-various-${{github.run_number}}
|
||||
name: e2e-${{ env.suite }}-${{github.run_number}}
|
||||
path: videos
|
||||
retention-days: 1
|
||||
Reference in New Issue
Block a user