Skip to content

Commit

Permalink
Feat: Drop support for EOLed PHPs (#49)
Browse files Browse the repository at this point in the history
- Test on 8.2 and 8.3
- Use installed psalm
- Bump psalm to v5.23
- Bump pest to v2.34
- Migrate phpunit config
  • Loading branch information
simPod authored Apr 12, 2024
1 parent 9bfa4d8 commit d0df451
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
php-version:
- "7.4"
- "8.1"

steps:
- name: "Checkout"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
strategy:
matrix:
php-version:
- "7.4"
- "8.0"
- "8.1"
- "8.2"
- "8.3"
dependencies:
- "highest"
include:
- dependencies: "lowest"
php-version: "7.4"
php-version: "8.1"

steps:
- name: "Checkout"
Expand Down
25 changes: 13 additions & 12 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
php-version:
- "7.4"
- "8.1"

steps:
- name: "Checkout code"
Expand All @@ -40,20 +40,21 @@ jobs:
strategy:
matrix:
php-version:
- "7.4"
- "8.1"

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

- name: Psalm
uses: docker://vimeo/psalm-github-actions:4.4.1
with:
args: --shepherd
composer_require_dev: true
security_analysis: true
report_file: results.sarif
- name: Upload Security Analysis results to GitHub
uses: github/codeql-action/upload-sarif@v1
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
sarif_file: results.sarif
coverage: "none"
php-version: "${{ matrix.php-version }}"
tools: "cs2pr"

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v1"

- name: "Run a static analysis with vimeo/psalm"
run: "vendor/bin/psalm
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@
]
},
"require": {
"php": "^7.4 || ^8.0"
"php": "^8.1"
},
"require-dev": {
"bentools/cartesian-product": "^1.3",
"doctrine/coding-standard": "^8.2",
"pestphp/pest": "^1.0,<=1.13",
"pestphp/pest": "^2.34",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^0.12.67",
"phpstan/phpstan-strict-rules": "^0.12.9",
"symfony/var-dumper": "^5.2",
"vimeo/psalm": "^4.4"
"vimeo/psalm": "^5.23"
},
"config": {
"sort-packages": true,
Expand Down
20 changes: 10 additions & 10 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
colors="true"
bootstrap="tests/bootstrap.php"
>
<testsuites>
<testsuite name="Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<coverage>
<include>
<directory suffix=".php">src</directory>
</include>
</coverage>
<testsuites>
<testsuite name="Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory>src</directory>
</include>
</source>
</phpunit>

0 comments on commit d0df451

Please sign in to comment.