diff --git a/.env.ci b/.env.ci index 1cfc1fc..f62bfb1 100644 --- a/.env.ci +++ b/.env.ci @@ -9,11 +9,11 @@ LOG_DEPRECATIONS_CHANNEL=null LOG_LEVEL=emergency DB_CONNECTION=mysql -DB_HOST=127.0.0.1 -DB_PORT=3306 +DB_HOST=mysql +DB_PORT=33306 DB_DATABASE=testing DB_USERNAME=root -DB_PASSWORD=password +DB_PASSWORD= FILESYSTEM_DISK=local QUEUE_CONNECTION=sync diff --git a/.github/workflows/general.yaml b/.github/workflows/general.yaml index da4ae83..5d53aab 100644 --- a/.github/workflows/general.yaml +++ b/.github/workflows/general.yaml @@ -100,19 +100,14 @@ jobs: laravel-tests: runs-on: ubuntu-24.04 - env: - DB_DATABASE: testing - DB_USERNAME: root - DB_PASSWORD: password services: mysql: image: mysql:8.3 env: - MYSQL_ALLOW_EMPTY_PASSWORD: false - MYSQL_ROOT_PASSWORD: password + MYSQL_ALLOW_EMPTY_PASSWORD: yes MYSQL_DATABASE: testing ports: - - 3306/tcp + - 33306:3306 options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 steps: - name: Checkout @@ -122,7 +117,6 @@ jobs: with: php-version: '8.3' extensions: mbstring, dom, fileinfo - tools: pint coverage: none - name: Configure Laravel Nova Authentication shell: bash @@ -161,7 +155,10 @@ jobs: - name: Run Migrations run: php artisan migrate -v env: - DB_PORT: ${{ job.services.mysql.ports['3306'] }} + DB_CONNECTION: mysql + DB_DATABASE: testing + DB_PORT: 33306 + DB_USER: root - name: Link Storage run: php artisan storage:link - name: Serve Application