Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run tests on PHP 8.4 and upgrade PEST #8

Merged
merged 3 commits into from
Nov 6, 2024
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
28 changes: 6 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,12 @@ name: CI
on: pull_request

jobs:
cs:
name: PHP CS Fixer
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'

- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Run PHP CS Fixer
run: composer cs

tests:
name: PestPHP Tests
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.0', '8.1', '8.2', '8.3']
php-versions: ['8.0', '8.1', '8.2', '8.3', '8.4']

steps:
- name: Checkout code
Expand All @@ -44,8 +25,8 @@ jobs:
- name: Run tests
run: vendor/bin/pest --coverage-clover clover.xml

stan:
name: PHPStan
stanAndCs:
name: Static Analysis (phpstan) and Code Style (PHP CS Fixer)
runs-on: ubuntu-latest

steps:
Expand All @@ -62,3 +43,6 @@ jobs:

- name: Run PHPStan
run: composer stan

- name: Run PHP CS Fixer
run: composer cs
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2023 Christian Olear
Copyright (c) 2024 Christian Olear

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
8 changes: 7 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,17 @@
"source": "https://github.com/crwlrsoft/query-string",
"docs": "https://www.crwlr.software/packages/query-string"
},
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/otsch"
}
],
"require": {
"php" : "^8.0"
},
"require-dev": {
"pestphp/pest": "^1.21",
"pestphp/pest": "^1.21|^2.0|^3.0",
"friendsofphp/php-cs-fixer": "^3.8",
"phpstan/phpstan": "^1.7"
},
Expand Down
5 changes: 3 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ parameters:
- src
- tests
treatPhpDocTypesAsCertain: false

reportUnmatchedIgnoredErrors: false
ignoreErrors:
- "/Call to an undefined method Pest\\\\Expectation\\\\|Pest\\\\Support\\\\Extendable.*/"
- "#^Call to an undefined method Pest\\\\Expectation\\\\|Pest\\\\Support\\\\Extendable.*#"
- "#^Call to an undefined method Pest\\\\PendingCalls\\\\TestCall\\|Pest\\\\Support\\\\HigherOrderTapProxy\\:\\:(with|throws)\\(\\).$#"