diff --git a/.github/workflows/draft-release-notes.yml b/.github/workflows/draft-release-notes.yml index 82a8b3a..48701e3 100644 --- a/.github/workflows/draft-release-notes.yml +++ b/.github/workflows/draft-release-notes.yml @@ -20,6 +20,6 @@ jobs: steps: - name: Draft release notes - uses: release-drafter/release-drafter@139054aeaa9adc52ab36ddf67437541f039b88e2 # v7 + uses: release-drafter/release-drafter@5de93583980a40bd78603b6dfdcda5b4df377b32 # v7 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test-php.yml b/.github/workflows/test-php.yml index 481b6e8..89e5b3e 100644 --- a/.github/workflows/test-php.yml +++ b/.github/workflows/test-php.yml @@ -22,7 +22,7 @@ jobs: uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - name: Cache Composer dependencies - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 + uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 with: path: /tmp/composer-cache key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} diff --git a/src/DrevOps/BehatFormatProgressFail/Printer/PrinterProgressFail.php b/src/DrevOps/BehatFormatProgressFail/Printer/PrinterProgressFail.php index c60a06e..ea0c59f 100644 --- a/src/DrevOps/BehatFormatProgressFail/Printer/PrinterProgressFail.php +++ b/src/DrevOps/BehatFormatProgressFail/Printer/PrinterProgressFail.php @@ -4,6 +4,7 @@ namespace DrevOps\BehatFormatProgressFail\Printer; +use Behat\Behat\Definition\Definition; use Behat\Gherkin\Node\ArgumentInterface; use Behat\Behat\Definition\Call\DefinitionCall; use Behat\Behat\Output\Node\Printer\Helper\ResultToStringConverter; @@ -110,7 +111,7 @@ protected function printFailure(StepResult $result, StepNode $step): string { } $exception = $result->getException(); - if ($exception) { + if ($exception instanceof \Exception) { $output .= sprintf(sprintf(' {+%s}%%s{-%s}', $style, $style), $exception->getMessage()); $output .= PHP_EOL; } @@ -134,7 +135,7 @@ protected function printStdOut(OutputPrinter $printer, StepResult $result): void } $step_definition = $result->getStepDefinition(); - if (!$step_definition) { + if (!$step_definition instanceof Definition) { return; }