Skip to content

Commit

Permalink
change variable and add db php extensions
Browse files Browse the repository at this point in the history
Signed-off-by: Valentin Sickert <[email protected]>
  • Loading branch information
Lapotor committed Dec 11, 2023
1 parent 7b997fc commit 7f93f20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/laravel-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
8 changes: 4 additions & 4 deletions .github/workflows/laravel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 7f93f20

Please sign in to comment.