Skip to content
Merged
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
17 changes: 13 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,21 @@ name: run-tests

on:
push:
branches: [main]
branches:
- main
pull_request:
branches: [main]
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

strategy:
fail-fast: true
matrix:
php: [8.3, 8.2, 8.1]
laravel: [11.*, 10.*, 9.*]
php: [8.4, 8.3, 8.2, 8.1]
laravel: ['9.*', '10.*', '11.*', '12.*']
stability: [prefer-stable]
include:
- laravel: 11.*
Expand All @@ -23,9 +26,13 @@ jobs:
- laravel: 9.*
testbench: 7.*
- php: 8.1
- laravel: 12.*
testbench: 10.*
exclude:
- laravel: 11.*
php: 8.1
- laravel: 12.*
php: 8.1

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ubuntu-latest

Expand All @@ -44,6 +51,7 @@ jobs:
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Install dependencies
run: |
composer require \
Expand All @@ -52,5 +60,6 @@ jobs:
"${{ matrix.php == '8.1' && 'roave/better-reflection:6.25.*' || 'roave/better-reflection:6.*' }}" \
--no-interaction --no-update --ignore-platform-reqs
composer update --${{ matrix.stability }} --prefer-dist --no-interaction --ignore-platform-reqs

- name: Execute tests
run: vendor/bin/phpunit
97 changes: 50 additions & 47 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,50 +1,53 @@
{
"name": "juampi92/phecks",
"description": "A package to run custom PHP checks",
"authors": [
{
"name": "juampi92",
"email": "juampi92@gmail.com"
"name": "juampi92/phecks",
"description": "A package to run custom PHP checks",
"authors": [
{
"name": "juampi92",
"email": "juampi92@gmail.com"
}
],
"license": "MIT",
"keywords": [
"laravel",
"api"
],
"require": {
"php": "^8.1|^8.2|^8.3|^8.4",
"ext-json": "*",
"illuminate/console": "^9.0|^10.0|^11.0|^12.0",
"illuminate/contracts": "^9.0|^10.0|^11.0|^12.0",
"illuminate/filesystem": "^9.0|^10.0|^11.0|^12.0",
"illuminate/support": "^9.0|^10.0|^11.0|^12.0",
"roave/better-reflection": "^6.25"
},
"require-dev": {
"orchestra/testbench": "^6.0|^7.0|^8.0|^9.0|^10.0",
"friendsofphp/php-cs-fixer": "^3.13",
"phpunit/phpunit": "^9.0|^10.5|^11.5.3",
"larastan/larastan": "^2.9|^3"
},
"autoload": {
"psr-4": {
"Juampi92\\Phecks\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Juampi92\\Phecks\\Tests\\": "tests/"
}
},
"scripts": {
"test": "vendor/bin/phpunit --colors=always",
"test-coverage": "vendor/bin/phpunit --coverage-html coverage",
"php-cs-fix": "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php -vv",
"phpstan": "./vendor/bin/phpstan analyze -c phpstan.neon.dist --memory-limit 1G"
},
"extra": {
"laravel": {
"providers": [
"Juampi92\\Phecks\\PhecksServiceProvider"
]
}
}
],
"license": "MIT",
"keywords": ["laravel", "api"],
"require": {
"php" : "^8.1|^8.2|^8.3",
"ext-json": "*",
"illuminate/console": "^9.0|^10.0|^11.0",
"illuminate/contracts": "^9.0|^10.0|^11.0",
"illuminate/filesystem": "^9.0|^10.0|^11.0",
"illuminate/support": "^9.0|^10.0|^11.0",
"roave/better-reflection": "^6.25"
},
"require-dev": {
"orchestra/testbench": "^6.0|^7.0|^8.0|^9.0",
"friendsofphp/php-cs-fixer": "^3.13",
"phpunit/phpunit": "^9.0|^10.5",
"larastan/larastan": "^2.9"
},
"autoload": {
"psr-4": {
"Juampi92\\Phecks\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Juampi92\\Phecks\\Tests\\": "tests/"
}
},
"scripts": {
"test": "vendor/bin/phpunit --colors=always",
"test-coverage": "vendor/bin/phpunit --coverage-html coverage",
"php-cs-fix": "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php -vv",
"phpstan": "./vendor/bin/phpstan analyze -c phpstan.neon.dist --memory-limit 1G"
},
"extra": {
"laravel": {
"providers": [
"Juampi92\\Phecks\\PhecksServiceProvider"
]
}
}
}