Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
* develop:
  New rule: Ensure link are at the bottom of the file (#1542)
  Use `phpunit/phpunit` 10 (#1541)
  Add `AbstractLineContentRuleTestCase` (#1540)
  Enhancement: Bump dependencies in `composer.json` (#1539)
  Add composer normalize (#1538)
  • Loading branch information
OskarStark committed Oct 16, 2023
2 parents 7babddd + d30f700 commit 7ae4ac7
Show file tree
Hide file tree
Showing 13 changed files with 1,069 additions and 423 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,35 @@ jobs:
- name: "Run friendsofphp/php-cs-fixer"
run: "vendor/bin/php-cs-fixer fix --diff --verbose"

composer-normalize:
name: composer normalize

runs-on: ubuntu-latest

strategy:
matrix:
php-version:
- '8.2'

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

- name: Install PHP with extensions
uses: shivammathur/setup-php@2.26.0
with:
coverage: "none"
php-version: ${{ matrix.php-version }}
tools: composer:v2

- name: "Composer install"
uses: "ramsey/composer-install@2.2.0"
with:
composer-options: "--no-scripts"

- name: "composer normalize"
run: "composer normalize"

tests:
name: PHPUnit

Expand Down
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
.PHONY: test
test:
.PHONY: tests
tests:
vendor/bin/phpunit

.PHONY: cs
cs: vendor
symfony php vendor/bin/php-cs-fixer fix --diff --verbose

.PHONY: phpstan
phpstan:
vendor/bin/phpstan analyse -c phpstan.neon.dist
.PHONY: static-code-analysis
static-code-analysis:
vendor/bin/phpstan analyse -c phpstan.neon.dist --memory-limit=-1

.PHONY: phpstan-baseline
phpstan-baseline:
.PHONY: static-code-analysis-baseline
static-code-analysis-baseline:
vendor/bin/phpstan analyse -c phpstan.neon.dist --generate-baseline=phpstan-baseline.neon

.PHONY: refactoring
Expand Down
64 changes: 33 additions & 31 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "project",
"license": "MIT",
"name": "oskarstark/doctor-rst",
"license": "MIT",
"type": "project",
"require": {
"php": "^8.2",
"ext-ctype": "*",
Expand All @@ -11,48 +11,30 @@
"ondram/ci-detector": "^4.1.0",
"symfony/config": "^6.3.2",
"symfony/console": "^6.3.4",
"symfony/dependency-injection": "^6.3.4",
"symfony/finder": "^6.3.3",
"symfony/dependency-injection": "^6.3.5",
"symfony/finder": "^6.3.5",
"symfony/options-resolver": "^6.3.0",
"symfony/service-contracts": "^3.3",
"symfony/string": "^6.3.2",
"symfony/string": "^6.3.5",
"symfony/yaml": "^6.3.3",
"webmozart/assert": "^1.11"
},
"require-dev": {
"ergebnis/composer-normalize": "^2.39",
"ergebnis/php-cs-fixer-config": "^5.16.0",
"ergebnis/test-util": "^1.6",
"icanhazstring/composer-unused": "^0.8.10",
"mikey179/vfsstream": "^1.6.11",
"phpstan/extension-installer": "^1.3.1",
"phpstan/phpstan": "^1.10.35",
"phpstan/phpstan-phpunit": "^1.3.14",
"phpstan/phpstan": "^1.10.38",
"phpstan/phpstan-phpunit": "^1.3.15",
"phpstan/phpstan-webmozart-assert": "^1.2.4",
"phpunit/phpunit": "^9.6.13",
"rector/rector": "^0.18.4",
"symfony/var-dumper": "^6.3.4"
},
"config": {
"preferred-install": {
"*": "dist"
},
"sort-packages": true,
"allow-plugins": {
"phpstan/extension-installer": true
}
},
"autoload": {
"psr-4": {
"App\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"App\\Tests\\": "tests/"
}
"phpunit/phpunit": "^10",
"rector/rector": "^0.18.5",
"symfony/var-dumper": "^6.3.5"
},
"replace": {
"paragonie/random_compat": "2.*",
"paragonie/random_compat": "^2.0",
"symfony/polyfill-ctype": "*",
"symfony/polyfill-iconv": "*",
"symfony/polyfill-php56": "*",
Expand All @@ -65,7 +47,27 @@
"symfony/polyfill-php81": "*",
"symfony/polyfill-php82": "*"
},
"autoload": {
"psr-4": {
"App\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"App\\Tests\\": "tests/"
}
},
"bin": [
"bin/doctor-rst"
]
],
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true,
"phpstan/extension-installer": true
},
"preferred-install": {
"*": "dist"
},
"sort-packages": true
}
}
Loading

0 comments on commit 7ae4ac7

Please sign in to comment.