Skip to content

Commit 8fa18b2

Browse files
authored
Print baseline diffs on test failures (#57852)
1 parent e37df04 commit 8fa18b2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,14 @@ jobs:
5757
- run: npm ci
5858

5959
- name: Tests
60+
id: test
6061
# run tests, but lint separately
6162
run: npm run test -- --no-lint --bundle=${{ matrix.bundle }}
6263

64+
- name: Print baseline diff on failure
65+
if: ${{ failure() && steps.test.conclusion == 'failure' }}
66+
run: git diff --diff-filter=AM --no-index -- ./tests/baselines/reference ./tests/baselines/local
67+
6368
lint:
6469
runs-on: ubuntu-latest
6570

0 commit comments

Comments
 (0)