Skip to content

Commit

Permalink
Merge pull request #82 from ayrtonandino/groundwork-for-v3
Browse files Browse the repository at this point in the history
Groundwork for v3
  • Loading branch information
tcampbPPU authored Nov 27, 2024
2 parents 527cffc + 235c727 commit eed2b2c
Show file tree
Hide file tree
Showing 31 changed files with 1,122 additions and 887 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
paths:
- '**.php'
- 'pint.json'

jobs:
lint:
name: lint
Expand All @@ -18,7 +20,9 @@ jobs:
coverage: none

- name: Install composer dependencies
uses: ramsey/composer-install@v2
uses: ramsey/composer-install@v3
with:
dependency-versions: "highest"

- name: Run Pint
run: ./vendor/bin/pint --dirty
4 changes: 3 additions & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ jobs:
coverage: none

- name: Install composer dependencies
uses: ramsey/composer-install@v2
uses: ramsey/composer-install@v3
with:
dependency-versions: "highest"

- name: Run PHPStan
run: ./vendor/bin/phpstan --error-format=github
17 changes: 9 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.1, 8.2, 8.3]
php: ['8.1', '8.2', '8.3']
laravel: ['10.*', '11.*']
stability: [prefer-lowest, prefer-stable]
stability: ['highest', 'lowest']
include:
- laravel: 10.*
testbench: 8.*
- laravel: 11.*
testbench: 9.*
exclude:
- laravel: 11.*
php: 8.1
php: '8.1'

name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} ${{ matrix.stability }} stability

steps:
- name: 🔨 Checkout code
Expand All @@ -37,10 +37,11 @@ jobs:
with:
php-version: ${{ matrix.php }}
coverage: none
tools: composer:v2

- name: 🔨 Install dependencies
run: composer update --prefer-dist --no-interaction --no-progress
- name: 🔨 Install composer dependencies
uses: "ramsey/composer-install@v3"
with:
dependency-versions: ${{ matrix.stability }}

- name: 🧪 Run Execute PHPUnit Tests
- name: 🧪 Run Unit Tests
run: composer test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ vendor
notes.md
.phpunit.cache
phpstan.neon
resources
8 changes: 6 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,17 @@
},
"require-dev": {
"orchestra/testbench": "^8.0|^9.0",
"phpunit/phpunit": "^10.0",
"phpunit/phpunit": "^10.1",
"laravel/pint": "^1.7",
"larastan/larastan": "^2.2",
"consolidation/robo": "^4.0",
"totten/lurkerlite": "^1.3",
"doctrine/dbal": "^3.6",
"spatie/laravel-ray": "^1.32"
"spatie/laravel-ray": "^1.32",
"phpstan/phpstan-deprecation-rules": "^1.2"
},
"conflict": {
"laravel/framework": "<10.43.0 || >=11.33.0"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit eed2b2c

Please sign in to comment.