Skip to content

Commit

Permalink
:octocat: run MySQL on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed Aug 25, 2024
1 parent a9b593b commit b814f11
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
# https://github.com/sebastianbergmann/phpunit/blob/master/.github/workflows/ci.yml

# https://github.com/ikalnytskyi/action-setup-postgres
# https://github.com/marketplace/actions/actions-setup-mysql

name: "Continuous Integration"

on:
Expand Down Expand Up @@ -113,19 +116,19 @@ jobs:
- name: "Install Postgres"
uses: ikalnytskyi/action-setup-postgres@v6
with:
postgres-version: 14
username: postgres
password: root
database: dbtest
port: 5432

# - name: "Install MySQL"
# uses: shogo82148/actions-setup-mysql@v1
# with:
# mysql-version: '5.7'
# auto-start: true
#
# - name: "Create MySQL test database"
# run: mysql --user="root" --host="127.0.0.1" -e "CREATE DATABASE dbtest character set UTF8mb4 collate utf8mb4_bin;"
- name: "Install MySQL"
uses: shogo82148/actions-setup-mysql@v1
with:
mysql-version: "8.0"

- name: "Create MySQL test database"
run: mysql --user="root" --host="127.0.0.1" -e "CREATE DATABASE dbtest character set UTF8mb4 collate utf8mb4_bin;"

# - name: "Install Firebird (Linux)"
# if: ${{ runner.os == 'Linux' }}
Expand Down
4 changes: 4 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
<exclude>
<group>firebird</group>
<group>mssql</group>
<!--
<group>mysql</group>
<group>pgsql</group>
<group>sqlite</group>
-->
</exclude>
</groups>
<php>
Expand Down

0 comments on commit b814f11

Please sign in to comment.