diff --git a/.github/workflows/laravel-test.yml b/.github/workflows/laravel-test.yml index ef19d018..6f73590b 100644 --- a/.github/workflows/laravel-test.yml +++ b/.github/workflows/laravel-test.yml @@ -46,7 +46,7 @@ jobs: uses: shivammathur/setup-php@e8cd65f444039503a75cf4057d55442fc4316f78 with: php-version: ${{ matrix.php-versions }} - extensions: sqlite, pdo_sqlite, pcntl, zip, intl, exif, mbstring, dom, fileinfo, mysql + extensions: pcntl, zip, intl, exif, mbstring, dom, fileinfo, ${{ inputs.db-type == 'mysql' && 'pdo_mysql' || inputs.db-type == 'pgsql' && 'pdo_pgsql' }} coverage: xdebug - name: Get Composer Cache Directory @@ -74,7 +74,7 @@ jobs: - name: Run Migrations run: php artisan migrate -v env: - DB_PORT: ${{ inputs.db-type == 'mysql' && 3306 || inputs.db-type == 'psql' && 5432 }} + DB_PORT: ${{ inputs.db-type == 'mysql' && 3306 || inputs.db-type == 'pgsql' && 5432 }} - name: Execute tests (Unit and Feature tests) via PHPUnit run: vendor/bin/phpunit --coverage-text diff --git a/.github/workflows/laravel.yml b/.github/workflows/laravel.yml index 729908ca..56bd5302 100644 --- a/.github/workflows/laravel.yml +++ b/.github/workflows/laravel.yml @@ -24,12 +24,12 @@ jobs: mariadb-versions: ["10", "11"] laravel-psql: - name: Laravel with PostgreSQL ${{ matrix.psql-versions }} + name: Laravel with PostgreSQL ${{ matrix.pgsql-versions }} uses: ./.github/workflows/laravel-test.yml with: - db-type: psql - db-version: ${{ matrix.psql-versions }} + db-type: pgsql + db-version: ${{ matrix.pgsql-versions }} strategy: matrix: - psql-versions: ["14", "15", "16"] + pgsql-versions: ["14", "15", "16"]