Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,18 @@ jobs:
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
options: "--name=mysqld"
volumes:
- /run/mysqld:/run/mysqld

steps:
- uses: actions/checkout@v2

- name: Workaround MySQL container permissions
if: startsWith(matrix.db, 'mysql')
run: |
sudo chown 999:999 /run/mysqld
/usr/bin/docker ps --all --filter status=exited --no-trunc --format "{{.ID}}" | xargs -r /usr/bin/docker start

- name: Set up Python ${{ matrix.py }}
uses: actions/setup-python@v2
with:
Expand Down
3 changes: 2 additions & 1 deletion ci/docker.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[
{"host": "127.0.0.1", "port": 3306, "user": "root", "password": "", "database": "test1", "use_unicode": true, "local_infile": true},
{"host": "127.0.0.1", "port": 3306, "user": "test2", "password": "some password", "database": "test2" }
{"host": "127.0.0.1", "port": 3306, "user": "test2", "password": "some password", "database": "test2" },
{"host": "localhost", "port": 3306, "user": "test2", "password": "some password", "database": "test2", "unix_socket": "/run/mysqld/mysqld.sock"}
]