Skip to content

Commit

Permalink
chore: Update composer.json and monorepo-builder.php
Browse files Browse the repository at this point in the history
- Update `composer.json` to use `@php` instead of absolute path for `ai-commit` and `release` commands.
- Update `monorepo-builder.php` to use relative path for `monorepo-builder-worker` autoload file.
- Update `phpunit.xml.dist` to use schema version 9.3 and configure code coverage.
- Update `tests/Pest.php` with annotations.
  • Loading branch information
guanguans committed Jan 23, 2024
1 parent 3f96327 commit 7273577
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
"post-update-cmd": [
"@cghooks update"
],
"ai-commit": "/opt/homebrew/opt/[email protected]/bin/php ./vendor/bin/ai-commit commit --generator=bito_cli --ansi",
"ai-commit": "@php ./vendor/bin/ai-commit commit --generator=bito_cli --ansi",
"ai-commit-no-verify": "@ai-commit --commit-options=--no-verify",
"benchmark": "@php ./vendor/bin/phpbench run --warmup=1 --retry-threshold=1 --iterations=3 --revs=5 --ansi -v",
"cghooks": "@php ./vendor/bin/cghooks --ansi -v",
Expand All @@ -171,7 +171,6 @@
"@composer-validate",
"@md-lint",
"@zh-lint",
"@lint",
"@style-lint",
"@test"
],
Expand Down Expand Up @@ -208,7 +207,7 @@
"psalm-baseline": "@psalm --update-baseline",
"rector": "@php ./vendor/bin/rector --ansi -v",
"rector-dry-run": "@rector --dry-run",
"release": "/opt/homebrew/opt/[email protected]/bin/php ./vendor/bin/monorepo-builder release --ansi -v",
"release": "@php ./vendor/bin/monorepo-builder release --ansi -v",
"release-major": "@release major",
"release-major-dry-run": "@release-major --dry-run",
"release-minor": "@release minor",
Expand Down
2 changes: 1 addition & 1 deletion monorepo-builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
use Symplify\MonorepoBuilder\Release\ReleaseWorker\UpdateReplaceReleaseWorker;

return static function (MBConfig $mbConfig): void {
require __DIR__.'/vendor-bin/monorepo-builder-worker/vendor/autoload.php';
require __DIR__.'/vendor/autoload.php';
$mbConfig->defaultBranch('main');

/**
Expand Down
20 changes: 10 additions & 10 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@
stopOnFailure="false"
verbose="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/8.5/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
>
<coverage>
<include>
<directory suffix=".php">src/</directory>
</include>
<exclude>
<directory>src/Support</directory>
<file>src/Skeleton.php</file>
</exclude>
</coverage>
<testsuites>
<testsuite name="Guanguans Test Suite">
<directory>tests/</directory>
<exclude>vendor/</exclude>
<exclude>tests/Feature/</exclude>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">src/</directory>
<exclude>
<directory>src/Support</directory>
<file>src/Skeleton.php</file>
</exclude>
</whitelist>
</filter>
</phpunit>
1 change: 1 addition & 0 deletions tests/Pest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

/** @noinspection AnonymousFunctionStaticInspection */
/** @noinspection DuplicateCustomExpectationInspection */

declare(strict_types=1);
Expand Down

0 comments on commit 7273577

Please sign in to comment.