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:
parent
7d21e192b2
commit
6e3da6921e
1 changed files with 3 additions and 21 deletions
24
.github/workflows/test.yml
vendored
24
.github/workflows/test.yml
vendored
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue