Skip to content

Commit 0d75339

Browse files
committed
add CI step to print baselines
1 parent 09bd8af commit 0d75339

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ jobs:
8181
- run: git add .
8282
- run: git diff --staged --exit-code --stat
8383

84+
- name: Print baseline diff on failure
85+
if: ${{ failure() && steps.test.conclusion == 'failure' }}
86+
run: |
87+
npx hereby baseline-accept
88+
git add testdata/baselines/reference
89+
git diff --staged --exit-code
90+
8491
lint:
8592
runs-on: ubuntu-latest
8693
steps:

0 commit comments

Comments
 (0)