From 8fa18b212c8b28f63523b2eab431f76d3667bc9d Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Tue, 19 Mar 2024 12:32:40 -0700 Subject: [PATCH] Print baseline diffs on test failures (#57852) --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 31a9b0261bb..482950af804 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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