Skip to content

Commit 615568a

Browse files
Merge pull request #83 from CodeWithDennis/pest4
PEST4 + Examples
2 parents 2bfdd4f + 23ca46d commit 615568a

File tree

14 files changed

+2366
-739
lines changed

14 files changed

+2366
-739
lines changed

.github/workflows/pest.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
name: Tests
22

33
on: [ push ]
4-
54
jobs:
65
tests:
6+
strategy:
7+
matrix:
8+
shard: [ 1, 2, 3, 4 ]
9+
710
name: Application Operational Test
811
runs-on: ubuntu-latest
912
steps:
@@ -47,5 +50,5 @@ jobs:
4750
- name: Migrations
4851
run: php artisan migrate --force -v
4952

50-
- name: PEST
51-
run: php artisan test --parallel
53+
- name: Tests (Shard ${{ matrix.shard }}/4)
54+
run: php artisan test --shard ${{ matrix.shard }}/4 -p

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@
2323
Homestead.json
2424
Homestead.yaml
2525
Thumbs.db
26+
tests/Browser/Screenshots

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,18 @@ A **bloat-free starter kit** for Laravel 12.x with FilamentPHP 4.x pre-configure
2626
- **barryvdh/laravel-debugbar** - Development insights
2727

2828
### Testing
29-
Includes a comprehensive test suite with Pest - perfect for learning testing or as a reference for your own tests.
29+
Includes a comprehensive test suite with **PEST 4.x** including browser testing - perfect for learning testing or as a reference for your own tests.
3030

3131
![Tests](resources/images/tests.png)
3232

33+
## GitHub Workflows
34+
35+
Comes with pre-configured GitHub Actions workflows for automated quality assurance:
36+
37+
- **Tests** - PEST 4.x testing with 4 parallel shards for faster CI/CD
38+
- **PHPStan** - Static analysis and type checking
39+
- **Pint** - Automated code style fixing with auto-commit
40+
3341
## Quick Start
3442

3543
```bash

composer.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@
2121
"laravel/sail": "^1.41",
2222
"mockery/mockery": "^1.6",
2323
"nunomaduro/collision": "^8.6",
24-
"pestphp/pest": "^3.0.0",
25-
"pestphp/pest-plugin-faker": "^3.0.0",
26-
"pestphp/pest-plugin-laravel": "^3.0.0",
27-
"pestphp/pest-plugin-livewire": "^3.0.0",
28-
"phpunit/phpunit": "^11.5.3",
24+
"pestphp/pest": "^v4.0.2",
25+
"pestphp/pest-plugin-browser": "^4.0",
26+
"pestphp/pest-plugin-faker": "^v4.0.0",
27+
"pestphp/pest-plugin-laravel": "^v4.0.0",
28+
"pestphp/pest-plugin-livewire": "^v4.0.1",
29+
"phpunit/phpunit": "^12.3.5",
2930
"rector/rector": "^2.0"
3031
},
3132
"autoload": {

0 commit comments

Comments
 (0)