From a0fd1364dcef71ec2e110ef4ed46f7646321ce93 Mon Sep 17 00:00:00 2001 From: cappuc Date: Fri, 9 Feb 2024 14:27:04 +0000 Subject: [PATCH 1/2] Fix styling --- src/Support/HttpServer/TraceRequestMiddleware.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Support/HttpServer/TraceRequestMiddleware.php b/src/Support/HttpServer/TraceRequestMiddleware.php index 8b59e95..5246a9c 100644 --- a/src/Support/HttpServer/TraceRequestMiddleware.php +++ b/src/Support/HttpServer/TraceRequestMiddleware.php @@ -12,7 +12,6 @@ use OpenTelemetry\API\Trace\StatusCode; use OpenTelemetry\SemConv\TraceAttributes; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\HttpFoundation\StreamedResponse; class TraceRequestMiddleware { From 06a1c40981f0f9d4b084f29dd8f5b974b8acd41c Mon Sep 17 00:00:00 2001 From: Fabio Capucci Date: Fri, 9 Feb 2024 17:18:15 +0100 Subject: [PATCH 2/2] updated actions --- .github/workflows/fix-php-code-style-issues.yml | 8 +++++++- .github/workflows/phpstan.yml | 5 +++++ .github/workflows/run-tests.yml | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/fix-php-code-style-issues.yml b/.github/workflows/fix-php-code-style-issues.yml index 7f61fce..335a725 100644 --- a/.github/workflows/fix-php-code-style-issues.yml +++ b/.github/workflows/fix-php-code-style-issues.yml @@ -1,6 +1,12 @@ name: Fix PHP code style issues -on: [push] +on: + push: + branches: + - main + pull_request: + branches: + - main jobs: php-code-styling: diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 8999797..b019d91 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -1,7 +1,12 @@ name: PHPStan on: + pull_request: + branches: + - main push: + branches: + - main paths: - '**.php' - 'composer.json' diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 8a90d0a..3c067fe 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -3,7 +3,7 @@ name: run-tests on: push: branches: - - '*' + - main pull_request: branches: - main