Skip to content

Commit 9b7bc95

Browse files
committed
Test FNSR in CI
1 parent 5ad820a commit 9b7bc95

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/static-analysis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,23 @@ jobs:
3636
- "8.4"
3737
- "8.5"
3838
operating-system: [ubuntu-latest, windows-latest]
39+
fnsr: ["0"]
40+
include:
41+
- php-version: "8.1"
42+
operating-system: ubuntu-latest
43+
fnsr: "1"
44+
- php-version: "8.2"
45+
operating-system: ubuntu-latest
46+
fnsr: "1"
47+
- php-version: "8.3"
48+
operating-system: ubuntu-latest
49+
fnsr: "1"
50+
- php-version: "8.4"
51+
operating-system: ubuntu-latest
52+
fnsr: "1"
53+
- php-version: "8.5"
54+
operating-system: ubuntu-latest
55+
fnsr: "1"
3956

4057
steps:
4158
- name: "Checkout"
@@ -62,10 +79,14 @@ jobs:
6279

6380
- name: "PHPStan"
6481
run: "make phpstan"
82+
env:
83+
PHPSTAN_FNSR: "${{ matrix.fnsr }}"
6584

6685
- name: "Generate baseline"
6786
if: failure() && (matrix.php-version == '7.4' || matrix.php-version == '8.0' || matrix.php-version == '8.1')
6887
run: "php -d memory_limit=448M bin/phpstan analyse --generate-baseline baseline-php-${{ matrix.php-version }}.neon"
88+
env:
89+
PHPSTAN_FNSR: "${{ matrix.fnsr }}"
6990

7091
- uses: actions/upload-artifact@v4
7192
if: ${{ failure() }}

0 commit comments

Comments
 (0)