Skip to content

Commit

Permalink
Print baseline diffs on test failures (#57852)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey authored Mar 19, 2024
1 parent e37df04 commit 8fa18b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8fa18b2

Please sign in to comment.