Skip to content

Commit

Permalink
[github] setup mysql service
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhu committed Dec 20, 2023
1 parent 31b805a commit 710ebff
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,18 @@ jobs:
image: "memcached:${{ matrix.memcached-version }}"
ports:
- 11211:11211
mysql:
image: mysql:8.0.21
env:
MYSQL_ROOT_PASSWORD: password
ports:
- 3306:3306

steps:
- name: Start MySQL
run: |
sudo /etc/init.d/mysql start
- name: Checkout
uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -65,4 +75,7 @@ jobs:
- name: Run Tests
run: php vendor/bin/phpunit
env:
MEMCACHED_HOST: 'localhost:11211'
MEMCACHED_HOST: 'localhost:11211'
MYSQL_HOST: '127.0.0.1'
MYSQL_USER: 'root'
MYSQL_PASSWORD: 'root'

0 comments on commit 710ebff

Please sign in to comment.