Skip to content

Commit

Permalink
Add mysql install to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
geo-tp authored Nov 11, 2024
1 parent f29c9ae commit e7f723f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,15 @@ jobs:
cache: maven

- name: Set up MySQL
uses: mirromutth/mysql-action@v1.1.0
with:
mysql version: '8'
host port: 3306
root password: 'root'
run: |
sudo apt-get update
sudo apt-get install -y mysql-server
sudo service mysql start
- name: Create MySQL database
run: |
sudo apt-get install mysql-client
mysql -h 127.0.0.1 -P 3306 -u root -proot -e "CREATE DATABASE IF NOT EXISTS autocrud;"
mysql -u root -e "CREATE DATABASE IF NOT EXISTS autocrud;"
# Run tests
- name: Run tests with Maven
Expand Down

0 comments on commit e7f723f

Please sign in to comment.