Skip to content

Commit ee6997e

Browse files
committed
Upload baseline on downgraded code
1 parent ebbfb85 commit ee6997e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/static-analysis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,16 @@ jobs:
6363
- name: "PHPStan"
6464
run: "make phpstan"
6565

66+
- name: "Generate baseline"
67+
if: failure() && (matrix.php-version == '7.4' || matrix.php-version == '8.0' || matrix.php-version == '8.1')
68+
run: "php -d memory_limit=448M bin/phpstan --generate-baseline baseline-php-${{ matrix.php-version }}.neon"
69+
70+
- uses: actions/upload-artifact@v4
71+
if: ${{ failure() }}
72+
with:
73+
name: baseline-${{ matrix.php-version }}
74+
path: baseline-php-${{ matrix.php-version }}.neon
75+
6676
static-analysis-with-result-cache:
6777
name: "PHPStan with result cache"
6878

0 commit comments

Comments
 (0)