Skip to content

Commit 2b595b8

Browse files
committed
Use GitHub Actions' built-in mysql
1 parent a4fdd45 commit 2b595b8

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

Diff for: .github/workflows/ci.yml

+3-10
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
django: [2.2]
1414
database_url:
1515
- postgres://runner:password@localhost/project
16-
- mysql://runner:password@127.0.0.1/project
16+
- mysql://root:root@127.0.0.1/project
1717

1818
services:
1919
postgres:
@@ -25,19 +25,12 @@ jobs:
2525
POSTGRES_USER: runner
2626
POSTGRES_PASSWORD: password
2727

28-
mysql:
29-
image: mysql:5.6
30-
ports:
31-
- 3306:3306
32-
env:
33-
MYSQL_DATABASE: project
34-
MYSQL_USER: runner
35-
MYSQL_PASSWORD: password
36-
3728
env:
3829
DATABASE_URL: ${{ matrix.database_url }}
3930

4031
steps:
32+
- name: Start MySQL
33+
run: sudo systemctl start mysql.service
4134
- uses: actions/checkout@v2
4235
- name: Set up Python ${{ matrix.python }}
4336
uses: actions/setup-python@v2

0 commit comments

Comments
 (0)