Skip to content

Run e2e test in parallel #1141

Run e2e test in parallel

Run e2e test in parallel #1141

Workflow file for this run

name: E2E CI
on:
push:
branches: [main]
tags: ["v*"]
pull_request:
types: [opened, synchronize]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
cache-version: 1
# CI tests with supported MySQL version.
jobs:
dbtest:
name: Integration tests with MySQL
strategy:
matrix:
mysql-version: ["8.0.28", "8.0.37", "8.0.39", "8.0.40", "8.4.3"]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Check and output changed files
uses: tj-actions/changed-files@a29e8b565651ce417abb5db7164b4a2ad8b6155c # v44.4.0
id: changed-files
with:
files_ignore: |
**/*.md
containers/**
- uses: ./.github/actions/dbtest
with:
mysql-version: ${{ matrix.mysql-version }}
if: steps.changed-files.outputs.any_changed == 'true'
e2e:
name: Supported Kubernetes versions End-to-End Tests
strategy:
matrix:
mysql-version: ["8.4.3"]
k8s-version: ["1.29.4", "1.30.4", "1.31.0"]
runs-on:
group: moco
steps:
- uses: actions/checkout@v4
- name: Check and output changed files
uses: tj-actions/changed-files@a29e8b565651ce417abb5db7164b4a2ad8b6155c # v44.4.0
id: changed-files
with:
files_ignore: |
**/*.md
containers/**
- uses: ./.github/actions/e2e
with:
k8s-version: ${{ matrix.k8s-version }}
mysql-version: ${{ matrix.mysql-version }}
name: k8s-version-e2e
if: steps.changed-files.outputs.any_changed == 'true'
e2e-mysql:
name: Supported MySQL versions End-to-End Tests
strategy:
matrix:
mysql-version: ["8.0.28", "8.0.37", "8.0.39", "8.0.40", "8.4.3"]
k8s-version: ["1.31.0"]
runs-on:
group: moco
steps:
- uses: actions/checkout@v4
- name: Check and output changed files
uses: tj-actions/changed-files@a29e8b565651ce417abb5db7164b4a2ad8b6155c # v44.4.0
id: changed-files
with:
files_ignore: |
**/*.md
containers/**
- uses: ./.github/actions/e2e
if: steps.changed-files.outputs.any_changed == 'true'
with:
k8s-version: ${{ matrix.k8s-version }}
mysql-version: ${{ matrix.mysql-version }}
name: mysql-version-e2e
upgrade:
name: Upgrade Test
runs-on:
group: moco
steps:
- uses: actions/checkout@v4
- name: Check and output changed files
uses: tj-actions/changed-files@a29e8b565651ce417abb5db7164b4a2ad8b6155c # v44.4.0
id: changed-files
with:
files_ignore: |
**/*.md
containers/**
- uses: ./.github/actions/upgrade
if: steps.changed-files.outputs.any_changed == 'true'
finish-e2e:
name: Confirm finishing all tests
runs-on: ubuntu-22.04
needs:
- dbtest
- e2e
- e2e-mysql
- upgrade
steps:
- run: echo "OK"