Skip to content

Commit

Permalink
try and get mysql working
Browse files Browse the repository at this point in the history
  • Loading branch information
brianlmoon committed Nov 20, 2023
1 parent 6e848b0 commit 5116373
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,18 @@ jobs:
--health-timeout 5s
--health-retries 5
# Label used to access the service container
db-mysql-sandbox:
# Docker Hub image
image: mysql
# Provide the password for postgres
env:
MYSQL_ROOT_PASSWORD: percona-root
MYSQL_DATABASE: mytestdb
MYSQL_USER: test
MYSQL_PASSWORD: test
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
DB_DATABASE: mytestdb
DB_USER: test
DB_PASSWORD: test

steps:

- name: Set up MySQL
run: |
sudo /etc/init.d/mysql start
mysql -e 'CREATE DATABASE ${{ env.DB_DATABASE }};' -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }}
- name: Checkout
uses: actions/checkout@v3

Expand Down

0 comments on commit 5116373

Please sign in to comment.