From 9b304df564904a818bc133142a43c127fac319c1 Mon Sep 17 00:00:00 2001 From: Refringe Date: Tue, 18 Jun 2024 15:19:36 -0400 Subject: [PATCH] Workflow Work --- .env.ci | 4 ++-- .github/workflows/general.yaml | 23 +++++++++++------------ app/View/Components/ModListStats.php | 3 ++- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.env.ci b/.env.ci index f62bfb1..55b774a 100644 --- a/.env.ci +++ b/.env.ci @@ -12,8 +12,8 @@ DB_CONNECTION=mysql DB_HOST=mysql DB_PORT=33306 DB_DATABASE=testing -DB_USERNAME=root -DB_PASSWORD= +DB_USERNAME=user +DB_PASSWORD=password FILESYSTEM_DISK=local QUEUE_CONNECTION=sync diff --git a/.github/workflows/general.yaml b/.github/workflows/general.yaml index 5d53aab..ec7f90d 100644 --- a/.github/workflows/general.yaml +++ b/.github/workflows/general.yaml @@ -62,7 +62,6 @@ jobs: with: php-version: '8.3' extensions: mbstring, dom, fileinfo - tools: pint coverage: none - name: Configure Laravel Nova Authentication shell: bash @@ -90,7 +89,7 @@ jobs: - name: Clear Laravel Config run: php artisan config:clear - name: Run Pint Code Style Fixer - run: pint + run: ./vendor/bin/pint - uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: Pint PHP Style Fixes [no ci] @@ -104,11 +103,18 @@ jobs: mysql: image: mysql:8.3 env: - MYSQL_ALLOW_EMPTY_PASSWORD: yes MYSQL_DATABASE: testing + MYSQL_USER: user + MYSQL_PASSWORD: password + MYSQL_ROOT_PASSWORD: password ports: - 33306:3306 options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 + env: + DB_DATABASE: testing + DB_PORT: 33306 + DB_USERNAME: user + DB_PASSWORD: password steps: - name: Checkout uses: actions/checkout@v4 @@ -152,16 +158,9 @@ jobs: php artisan key:generate php artisan config:cache php artisan route:cache - - name: Run Migrations - run: php artisan migrate -v - env: - DB_CONNECTION: mysql - DB_DATABASE: testing - DB_PORT: 33306 - DB_USER: root + - name: Run Database Migrations + run: php artisan migrate - name: Link Storage run: php artisan storage:link - - name: Serve Application - run: php artisan serve & sleep 5 - name: Run Tests run: php artisan test diff --git a/app/View/Components/ModListStats.php b/app/View/Components/ModListStats.php index a267d7c..a424321 100644 --- a/app/View/Components/ModListStats.php +++ b/app/View/Components/ModListStats.php @@ -10,7 +10,8 @@ class ModListStats extends Component public function __construct( public $mod, public $modVersion - ) {} + ) { + } public function render(): View {