Skip to content

Commit

Permalink
Add 5.7.12 to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
morgo committed Mar 23, 2023
1 parent 4ea047d commit ebb2fd2
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/mysql57.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: 1.20

- name: Deploy MySQL
run: scripts/dbdeployer_install_57.sh
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/mysql5712.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: MySQL 5.7.12
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.20

- name: Deploy MySQL
run: scripts/dbdeployer_install_5712.sh

- name: Test
run: MYSQL_DSN="msandbox:msandbox@tcp(127.0.0.1:5712)/test" go test -v ./...
2 changes: 1 addition & 1 deletion .github/workflows/mysql8.0.23.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: 1.20

- name: Deploy MySQL
run: scripts/dbdeployer_install_8023.sh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mysql8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: 1.20

- name: Deploy MySQL
run: scripts/dbdeployer_install_8.sh
Expand Down
20 changes: 20 additions & 0 deletions scripts/dbdeployer_install_5712.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash
set -xe

sudo apt install -y libncurses5

go install github.com/datacharmer/dbdeployer@latest

dbdeployer init

wget https://downloads.mysql.com/archives/get/p/23/file/mysql-5.7.12-linux-glibc2.5-x86_64.tar.gz
dbdeployer unpack mysql-5.7.12-linux-glibc2.5-x86_64.tar.gz
dbdeployer deploy single 5.7.12

# For spirit to work, binary logging must be enabled.
# It is not by default in MySQL 5.7

echo "log-bin" >> ~/sandboxes/msb_5_7_12/my.sandbox.cnf
echo "server-id=123" >> ~/sandboxes/msb_5_7_12/my.sandbox.cnf

~/sandboxes/msb_5_7_12/restart

0 comments on commit ebb2fd2

Please sign in to comment.