diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ba3a28..07b0d63 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,22 @@ jobs: build: runs-on: ubuntu-latest + services: + mysql: + image: mysql:8.0 + env: + MYSQL_ROOT_PASSWORD: root + MYSQL_DATABASE: appdb + MYSQL_USER: appuser + MYSQL_PASSWORD: secret + ports: + - 3306:3306 + options: >- + --health-cmd="mysqladmin ping -h localhost" + --health-interval=10s + --health-timeout=5s + --health-retries=5 + steps: - name: Checkout uses: actions/checkout@v3 @@ -22,4 +38,5 @@ jobs: cache: maven - name: Build with Maven - run: mvn clean install + run: mvn clean install -DskipTests +