Skip to content

Commit 708a101

Browse files
committed
Execute phpunit in github action
1 parent e0c5e90 commit 708a101

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/php.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,6 @@ jobs:
4242

4343
- name: Run PHPStan
4444
run: vendor/bin/phpstan
45+
46+
- name: Run PHPUnit
47+
run: vendor/bin/phpunit

src/Console/ScanCommandOutputHelper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use DateTimeImmutable;
77
use DateTimeInterface;
88
use Exception;
9+
use Gared\EtherScan\Service\Scanner\Health\HealthResponseException;
910
use Gared\EtherScan\Service\ScannerServiceCallbackInterface;
1011
use GuzzleHttp\Exception\GuzzleException;
1112
use JsonException;
@@ -107,7 +108,7 @@ public function onHealthResult(array $data): void
107108
$this->symfonyStyle->error('Health: ' . print_r($data, true));
108109
}
109110

110-
public function onHealthException(GuzzleException|JsonException $e): void
111+
public function onHealthException(HealthResponseException $e): void
111112
{
112113
$this->symfonyStyle->error($e->getMessage());
113114
}

0 commit comments

Comments
 (0)