diff --git a/.github/workflows/keepalive.yml b/.github/workflows/keepalive.yml new file mode 100644 index 0000000..8f807a1 --- /dev/null +++ b/.github/workflows/keepalive.yml @@ -0,0 +1,19 @@ +name: Keepalive + +# GitHub disables a public repository's scheduled workflows after 60 days with +# no push, without telling anyone. This re-enables them weekly, which resets +# that clock. The logic, and what it deliberately leaves alone, is in +# laranail/.github's reusable keepalive.yml. + +on: + schedule: + - cron: "17 5 * * 1" + workflow_dispatch: + +permissions: {} + +jobs: + keepalive: + permissions: + actions: write + uses: laranail/.github/.github/workflows/keepalive.yml@main diff --git a/src/Testing/ValidationFake.php b/src/Testing/ValidationFake.php index 17e578f..b3ba322 100644 --- a/src/Testing/ValidationFake.php +++ b/src/Testing/ValidationFake.php @@ -43,7 +43,7 @@ public function __construct() public function assertValidated(?Closure $matching = null): void { if (! $matching instanceof Closure) { - Assert::assertNotEmpty($this->completed, 'Expected at least one passing validation run; none happened.'); + Assert::assertNotSame([], $this->completed, 'Expected at least one passing validation run; none happened.'); return; } @@ -58,7 +58,7 @@ public function assertValidated(?Closure $matching = null): void public function assertFailed(?Closure $matching = null): void { if (! $matching instanceof Closure) { - Assert::assertNotEmpty($this->failed, 'Expected at least one failing validation run; none happened.'); + Assert::assertNotSame([], $this->failed, 'Expected at least one failing validation run; none happened.'); return; }