Skip to content

Commit bb41d83

Browse files
committed
assert baseline after test
1 parent 748e64d commit bb41d83

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ jobs:
326326
cd e2e/bug-12629
327327
../../bin/phpstan --generate-baseline # should generate without crash
328328
../../bin/phpstan # should re-analyze without new errors
329+
../bashunit -a assert_files_equals phpstan-baseline.neon phpstan-baseline.neon.expect
329330
330331
steps:
331332
- name: "Checkout"
@@ -342,5 +343,8 @@ jobs:
342343
- name: "Install dependencies"
343344
run: "composer install --no-interaction --no-progress"
344345

346+
- name: "Install bashunit"
347+
run: "curl -s https://bashunit.typeddevs.com/install.sh | bash -s e2e/ 0.17.0"
348+
345349
- name: "Test"
346350
run: ${{ matrix.script }}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: "#^Method Bug12629\\\\Bug12629\\:\\:is_macintosh_enc\\(\\) has no return type specified\\.$#"
5+
count: 1
6+
path: src/bug-12629.php
7+
8+
-
9+
message: "#^Method Bug12629\\\\Bug12629\\:\\:is_macintosh_enc\\(\\) has parameter \\$s with no type specified\\.$#"
10+
count: 1
11+
path: src/bug-12629.php
12+
13+
-
14+
message: "#^Method Bug12629\\\\Bug12629\\:\\:is_macintosh_enc\\(\\) is unused\\.$#"
15+
count: 1
16+
path: src/bug-12629.php
17+
18+
-
19+
message: "#^Regex pattern is invalid\\: Compilation failed\\: UTF\\-8 error\\: byte 2 top bits not 0x80 at offset 0 in pattern$#"
20+
count: 1
21+
path: src/bug-12629.php
22+
23+
-
24+
message: "#^Regex pattern is invalid\\: Compilation failed\\: UTF\\-8 error\\: isolated byte with 0x80 bit set at offset 1 in pattern$#"
25+
count: 1
26+
path: src/bug-12629.php

0 commit comments

Comments
 (0)