Skip to content

Commit b814f11

Browse files
committed
:octocat: run MySQL on CI
1 parent a9b593b commit b814f11

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
22
# https://github.com/sebastianbergmann/phpunit/blob/master/.github/workflows/ci.yml
33

4+
# https://github.com/ikalnytskyi/action-setup-postgres
5+
# https://github.com/marketplace/actions/actions-setup-mysql
6+
47
name: "Continuous Integration"
58

69
on:
@@ -113,19 +116,19 @@ jobs:
113116
- name: "Install Postgres"
114117
uses: ikalnytskyi/action-setup-postgres@v6
115118
with:
119+
postgres-version: 14
116120
username: postgres
117121
password: root
118122
database: dbtest
119123
port: 5432
120124

121-
# - name: "Install MySQL"
122-
# uses: shogo82148/actions-setup-mysql@v1
123-
# with:
124-
# mysql-version: '5.7'
125-
# auto-start: true
126-
#
127-
# - name: "Create MySQL test database"
128-
# run: mysql --user="root" --host="127.0.0.1" -e "CREATE DATABASE dbtest character set UTF8mb4 collate utf8mb4_bin;"
125+
- name: "Install MySQL"
126+
uses: shogo82148/actions-setup-mysql@v1
127+
with:
128+
mysql-version: "8.0"
129+
130+
- name: "Create MySQL test database"
131+
run: mysql --user="root" --host="127.0.0.1" -e "CREATE DATABASE dbtest character set UTF8mb4 collate utf8mb4_bin;"
129132

130133
# - name: "Install Firebird (Linux)"
131134
# if: ${{ runner.os == 'Linux' }}

phpunit.xml.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
<exclude>
2727
<group>firebird</group>
2828
<group>mssql</group>
29+
<!--
2930
<group>mysql</group>
31+
<group>pgsql</group>
32+
<group>sqlite</group>
33+
-->
3034
</exclude>
3135
</groups>
3236
<php>

0 commit comments

Comments
 (0)