Skip to content

Commit

Permalink
chore(composer): Update pest and rector configurations
Browse files Browse the repository at this point in the history
- Updated the pest configuration to use phpunit.xml.dist
- Updated the rector configuration to use rector.php
  • Loading branch information
guanguans committed Apr 15, 2024
1 parent fb4b2d1 commit b097377
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint-md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: lint-md 'README.md' --config=.lintmdrc --threads --fix

- name: Lint zh_CN
run: zhlint 'README.md' --fix
run: zhlint 'README.md' --config=.zhlintrc --fix

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
],
"md-fix": "@md-lint --fix",
"md-lint": "lint-md 'README.md' --config=.lintmdrc --threads",
"pest": "@php ./vendor/bin/pest --coverage --profile",
"pest": "@php ./vendor/bin/pest --configuration=phpunit.xml.dist --coverage --profile",
"pest-coverage": "@pest --coverage-html=./.build/phpunit/ --coverage-clover=./.build/phpunit/clover.xml",
"pest-migrate-configuration": "@pest --migrate-configuration",
"pest-profile": "@pest --profile",
Expand All @@ -145,7 +145,7 @@
"@md-fix",
"@zh-fix"
],
"rector": "@php ./vendor/bin/rector --ansi -v",
"rector": "@php ./vendor/bin/rector --config=rector.php --ansi -v",
"rector-dry-run": "@rector --dry-run",
"release": "@php ./vendor/bin/monorepo-builder release --ansi -v",
"release-major": "@release major",
Expand All @@ -167,6 +167,6 @@
"trufflehog": "trufflehog git https://github.com/guanguans/ai-commit --only-verified",
"yaml-lint": "@php ./vendor/bin/yaml-lint .*.yml .github/ --ansi -v",
"zh-fix": "@zh-lint --fix",
"zh-lint": "zhlint 'README.md'"
"zh-lint": "zhlint 'README.md' --config=.zhlintrc"
}
}

0 comments on commit b097377

Please sign in to comment.