Skip to content

Commit

Permalink
test: provide a MySQL service for CI coverage tests
Browse files Browse the repository at this point in the history
A local MySQL service is required to run some integration tests in the coverage CI workflow.
  • Loading branch information
abcpro1 committed Aug 21, 2023
1 parent f6e945c commit 9d60dba
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,19 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
mysql:
image: mysql:8
ports:
- 3306:3306
env:
MYSQL_ROOT_PASSWORD: mysql
MYSQL_ROOT_HOST: '%'
MYSQL_DATABASE: test
options: >-
--health-cmd "mysqladmin ping -uroot --password=mysql"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Configure AWS credentials
Expand Down

0 comments on commit 9d60dba

Please sign in to comment.