Use matrix build for replica test CI
This commit is contained in:
parent
6cdf4b572b
commit
5ebbfaea89
5
.github/workflows/replica-tests.yml
vendored
5
.github/workflows/replica-tests.yml
vendored
@ -6,6 +6,9 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
version: [mysql-5.5.62,mysql-5.6.43,mysql-5.7.25,mysql-8.0.16]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -16,4 +19,6 @@ jobs:
|
|||||||
go-version: 1.14
|
go-version: 1.14
|
||||||
|
|
||||||
- name: migration tests
|
- name: migration tests
|
||||||
|
env:
|
||||||
|
TEST_MYSQL_VERSION: ${{ matrix.version }}
|
||||||
run: script/cibuild-gh-ost-replica-tests
|
run: script/cibuild-gh-ost-replica-tests
|
||||||
|
@ -59,12 +59,16 @@ test_mysql_version() {
|
|||||||
find sandboxes -name "stop_all" | bash
|
find sandboxes -name "stop_all" | bash
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "Building..."
|
# TEST_MYSQL_VERSION is set by the replica-tests CI job
|
||||||
. script/build
|
if [ -z "$TEST_MYSQL_VERSION" ]; then
|
||||||
# Test all versions:
|
# Test all versions:
|
||||||
find gh-ost-ci-env/mysql-tarballs/ -name "*.tar.gz" | while read f ; do basename $f ".tar.gz" ; done | sort -r | while read mysql_version ; do
|
find gh-ost-ci-env/mysql-tarballs/ -name "*.tar.gz" | while read f ; do basename $f ".tar.gz" ; done | sort -r | while read mysql_version ; do
|
||||||
echo "found MySQL version: $mysql_version"
|
echo "found MySQL version: $mysql_version"
|
||||||
done
|
done
|
||||||
find gh-ost-ci-env/mysql-tarballs/ -name "*.tar.gz" | while read f ; do basename $f ".tar.gz" ; done | sort -r | while read mysql_version ; do
|
find gh-ost-ci-env/mysql-tarballs/ -name "*.tar.gz" | while read f ; do basename $f ".tar.gz" ; done | sort -r | while read mysql_version ; do
|
||||||
test_mysql_version "$mysql_version"
|
test_mysql_version "$mysql_version"
|
||||||
done
|
done
|
||||||
|
else
|
||||||
|
echo "found MySQL version: $MYSQL_VERSION"
|
||||||
|
test_mysql_version "$MYSQL_VERSION"
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user