Print baseline diffs on test failures (#57852)

This commit is contained in:
Jake Bailey 2024-03-19 12:32:40 -07:00 committed by GitHub
parent e37df042eb
commit 8fa18b212c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,9 +57,14 @@ jobs:
- run: npm ci
- name: Tests
id: test
# run tests, but lint separately
run: npm run test -- --no-lint --bundle=${{ matrix.bundle }}
- name: Print baseline diff on failure
if: ${{ failure() && steps.test.conclusion == 'failure' }}
run: git diff --diff-filter=AM --no-index -- ./tests/baselines/reference ./tests/baselines/local
lint:
runs-on: ubuntu-latest