Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 20 additions & 13 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,14 @@ jobs:
run: touch database/testing.sqlite

- name: Unit tests
run: vendor/bin/pest tests/Unit
run: composer run test:parallel -- tests/Unit
env:
DB_HOST: UNIT_NO_DB
SKIP_MIGRATIONS: true

- name: Integration tests
run: vendor/bin/pest tests/Integration
run: composer run test:parallel -- tests/Integration
env:
SKIP_MIGRATIONS: false

mysql:
name: MySQL
Expand Down Expand Up @@ -121,16 +122,17 @@ jobs:
run: composer install --no-interaction --no-suggest --no-progress --no-scripts

- name: Unit tests
run: vendor/bin/pest tests/Unit
run: composer run test:parallel -- tests/Unit
env:
DB_HOST: UNIT_NO_DB
SKIP_MIGRATIONS: true

- name: Integration tests
run: vendor/bin/pest tests/Integration
run: |
composer run test:parallel -- tests/Integration
echo $DB_HOST
env:
DB_PORT: ${{ job.services.database.ports[3306] }}
DB_USERNAME: root
SKIP_MIGRATIONS: false

mariadb:
name: MariaDB
Expand Down Expand Up @@ -183,16 +185,17 @@ jobs:
run: composer install --no-interaction --no-suggest --no-progress --no-scripts

- name: Unit tests
run: vendor/bin/pest tests/Unit
run: composer run test:parallel -- tests/Unit
env:
DB_HOST: UNIT_NO_DB
SKIP_MIGRATIONS: true

- name: Integration tests
run: vendor/bin/pest tests/Integration
run: |
composer run test:parallel -- tests/Integration
echo $DB_HOST
env:
DB_PORT: ${{ job.services.database.ports[3306] }}
DB_USERNAME: root
SKIP_MIGRATIONS: false

postgresql:
name: PostgreSQL
Expand Down Expand Up @@ -251,10 +254,14 @@ jobs:
run: composer install --no-interaction --no-suggest --no-progress --no-scripts

- name: Unit tests
run: vendor/bin/pest tests/Unit
run: composer run test:parallel -- tests/Unit
env:
DB_HOST: UNIT_NO_DB
SKIP_MIGRATIONS: true

- name: Integration tests
run: vendor/bin/pest tests/Integration
run: |
composer run test:parallel -- tests/Integration
echo $DB_HOST
env:
SKIP_MIGRATIONS: false
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
"pestphp/pest": "^3.7",
"pestphp/pest-plugin-faker": "^3.0",
"pestphp/pest-plugin-livewire": "^3.0",
"spatie/laravel-ignition": "^2.9"
"spatie/laravel-ignition": "^2.9",
"brianium/paratest": "^7.8.4"
},
"autoload": {
"files": [
Expand All @@ -76,6 +77,8 @@
"scripts": {
"pint": "pint",
"phpstan": "phpstan --memory-limit=-1",
"test": "php artisan test",
"test:parallel": "php artisan test --parallel",
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan filament:upgrade"
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading