Alternative mysql action setup

This commit is contained in:
Griatch 2020-05-17 23:38:39 +02:00
parent 5d41401da0
commit 2d76c69748

View file

@ -22,6 +22,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up PostgreSQL server - name: Set up PostgreSQL server
uses: harmon758/postgresql-action@v1 uses: harmon758/postgresql-action@v1
if: ${{ matrix.TESTING_DB == 'postgresql' }} if: ${{ matrix.TESTING_DB == 'postgresql' }}
@ -29,13 +30,17 @@ jobs:
postgresql version: '10.7' postgresql version: '10.7'
posgresql db: 'postgres' posgresql db: 'postgres'
postgresql user: 'postgres' postgresql user: 'postgres'
# - name: Set up MySQL server - name: Shutdown Ubuntu MySQL
# uses: mirromutth/mysql-action@v1.1 if: ${{ matrix.TESTING_DB == 'mysql'}}
# if: ${{ matrix.TESTING_DB == 'mysql'}} run: sudo service mysql stop
# with: - name: Set up MySQL server
# mysql version: '8.0' uses: mirromutth/mysql-action@v1.1
# mysql root password: 'root' if: ${{ matrix.TESTING_DB == 'mysql'}}
# with:
mysql version: '8.0'
mysql database: 'root'
mysql root password: 'root'
# wait for db to activage, get logs from their start # wait for db to activage, get logs from their start
- name: Wait / sleep - name: Wait / sleep
uses: jakejarvis/wait-action@v0.1.0 uses: jakejarvis/wait-action@v0.1.0