0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Removed MySQL 5 from CI

closes https://github.com/TryGhost/Toolbox/issues/396

- we no longer support MySQL 5 so we shouldn't be running CI against it
- this cleans up use of MySQL 5 in GHA
This commit is contained in:
Daniel Lockyer 2022-09-27 08:03:53 +07:00
parent 7d21e192b2
commit 6e3da6921e
No known key found for this signature in database

View file

@ -85,8 +85,6 @@ jobs:
env:
- DB: sqlite3
DB_CLIENT: sqlite3
- DB: mysql5
DB_CLIENT: mysql
- DB: mysql8
DB_CLIENT: mysql
env:
@ -106,14 +104,7 @@ jobs:
- name: Shutdown MySQL
run: sudo service mysql stop
if: matrix.env.DB == 'mysql5' || matrix.env.DB == 'mysql8'
- uses: daniellockyer/mysql-action@main
if: matrix.env.DB == 'mysql5'
with:
mysql version: '5.7'
mysql database: 'ghost_testing'
mysql root password: 'root'
if: matrix.env.DB == 'mysql8'
- uses: daniellockyer/mysql-action@main
if: matrix.env.DB == 'mysql8'
@ -143,7 +134,7 @@ jobs:
- run: sqlite3 ${{ env.database__connection__filename }} "DELETE FROM migrations WHERE version LIKE '5.%';"
if: matrix.env.DB == 'sqlite3'
- run: mysql -h127.0.0.1 -uroot -proot ghost_testing -e "DELETE FROM migrations WHERE version LIKE '5.%';"
if: matrix.env.DB == 'mysql5' || matrix.env.DB == 'mysql8'
if: matrix.env.DB == 'mysql8'
- run: yarn knex-migrator migrate --force
@ -191,8 +182,6 @@ jobs:
env:
- DB: sqlite3
NODE_ENV: testing
- DB: mysql5
NODE_ENV: testing-mysql
- DB: mysql8
NODE_ENV: testing-mysql
env:
@ -210,14 +199,7 @@ jobs:
- name: Shutdown MySQL
run: sudo service mysql stop
if: matrix.env.DB == 'mysql5' || matrix.env.DB == 'mysql8'
- uses: daniellockyer/mysql-action@main
if: matrix.env.DB == 'mysql5'
with:
mysql version: '5.7'
mysql database: 'ghost_testing'
mysql root password: 'root'
if: matrix.env.DB == 'mysql8'
- uses: daniellockyer/mysql-action@main
if: matrix.env.DB == 'mysql8'