Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@
/.laminas-ci.json export-ignore
/composer.lock export-ignore
/renovate.json export-ignore
/composer-dependency-analyser.php export-ignore
16 changes: 16 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@ on:
branches:
tags:

env:
default_php: 8.2

jobs:
ci:
uses: laminas/workflow-continuous-integration/.github/workflows/[email protected]

dep-analyser:
runs-on: ubuntu-latest
name: Run Dependency analysis
steps:
- uses: actions/[email protected]
- uses: shivammathur/[email protected]
with:
php-version: ${{ env.default_php }}
extensions: swoole
tools: composer
- uses: ramsey/composer-install@v3
- run: composer dep-analysis
11 changes: 11 additions & 0 deletions composer-dependency-analyser.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

declare(strict_types=1);

use ShipMonk\ComposerDependencyAnalyser\Config\Configuration;

$config = new Configuration();
return $config
// Ignore unknown classes for PHP 8.2 compatibility. Remove after dropping PHP 8.2 support.
->ignoreUnknownClasses([Override::class])
->ignoreUnknownFunctions(["inotify_add_watch", "inotify_init", "inotify_read"]);
10 changes: 6 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,25 +39,25 @@
"ext-swoole": "^6.0",
"ext-zlib": "*",
"dflydev/fig-cookies": "^2.0.1 || ^3.0",
"laminas/laminas-cli": "^1.8",
"filp/whoops": "^2.18",
"laminas/laminas-diactoros": "^2.25.2 || ^3.0",
"laminas/laminas-httphandlerrunner": "^2.5",
"mezzio/mezzio": "^3.15",
"psr/container": "^1.1.2 || ^2.0.2",
"psr/event-dispatcher": "^1.0",
"psr/http-message": "^1.1 || ^2.0",
"psr/http-message-implementation": "^1.0 || ^2.0",
"psr/http-server-handler": "^1.0.2",
"psr/log": "^1.0 || ^2.0 || ^3.0",
"symfony/console": "^5.3 || ^6.0.19 || ^7.0",
"webmozart/assert": "^1.11"
},
"require-dev": {
"filp/whoops": "^2.15.2",
"laminas/laminas-coding-standard": "~3.1.0",
"laminas/laminas-servicemanager": "^4.0",
"laminas/laminas-stdlib": "^3.20",
"phpunit/phpunit": "^10.5",
"psalm/plugin-phpunit": "^0.19.5",
"shipmonk/composer-dependency-analyser": "^1.8",
"swoole/ide-helper": "^6.0",
"vimeo/psalm": "^6.13"
},
Expand All @@ -77,10 +77,12 @@
"scripts": {
"check": [
"@cs-check",
"@test"
"@test",
"@dep-analysis"
],
"cs-check": "phpcs",
"cs-fix": "phpcbf",
"dep-analysis": "composer-dependency-analyser --disable-ext-analysis",
"static-analysis": "psalm --shepherd --stats",
"test": "phpunit --colors=always",
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml"
Expand Down
Loading