Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/samples-php-nextgen-phpstan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Samples php-nextgen (phpstan)

on:
push:
paths:
- samples/client/petstore/php-nextgen/OpenAPIClient-php/**
pull_request:
paths:
- samples/client/petstore/php-nextgen/OpenAPIClient-php/**
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: true

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: fail-fast: true cancels the remaining PHP-version matrix jobs on the first failure, losing visibility into whether other versions pass. All other PHP workflows in this repo use fail-fast: false to collect results across all PHP versions.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .github/workflows/samples-php-nextgen-phpstan.yaml, line 15:

<comment>`fail-fast: true` cancels the remaining PHP-version matrix jobs on the first failure, losing visibility into whether other versions pass. All other PHP workflows in this repo use `fail-fast: false` to collect results across all PHP versions.</comment>

<file context>
@@ -0,0 +1,35 @@
+    name: Build 
+    runs-on: ubuntu-latest
+    strategy:
+      fail-fast: true
+      matrix:
+        php:
</file context>
Suggested change
fail-fast: true
fail-fast: false

matrix:
php:
- "8.1"
- "8.2"
- "8.3"
- "8.4"
sample:
# clients
- samples/client/petstore/php-nextgen/OpenAPIClient-php/
steps:
- uses: actions/checkout@v7
- name: Setup PHP with tools
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
- name: phpstan
working-directory: ${{ matrix.sample }}
run: |
composer require --dev phpstan/phpstan
vendor/bin/phpstan analyse src
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@
#!docs/README.md
#
#
#
#
Loading