Skip to content

Commit

Permalink
Add db to workflow #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasss93 committed Dec 9, 2023
1 parent a533020 commit 80feea6
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ jobs:
key: php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
restore-keys: php-${{ matrix.php }}-composer-

- uses: shogo82148/actions-setup-mysql@v1
with:
distribution: "mariadb"
mysql-version: "10.7"
root-password: "root"

- name: Setup PHP
uses: shivammathur/[email protected]
with:
Expand All @@ -27,13 +33,6 @@ jobs:
- name: Install dependencies
run: composer install --prefer-dist --no-interaction --no-suggest

- uses: shogo82148/actions-setup-mysql@v1
with:
distribution: "mariadb"
mysql-version: "10.7"
root-password: "root"
- run: mysql -u root -proot -e "CREATE DATABASE test;"

- name: Execute tests
env:
DB_CONNECTION: mysql
Expand Down

0 comments on commit 80feea6

Please sign in to comment.