File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -73,14 +73,23 @@ jobs:
73
73
# Installing gotestsum is super slow on Windows.
74
74
if : ${{ matrix.os != 'windows-latest' }}
75
75
76
- - run : npx hereby test:all ${RACE_FLAG:+"$RACE_FLAG"} ${NOEMBED_FLAG:+"$NOEMBED_FLAG"}
76
+ - name : Tests
77
+ id : test
78
+ run : npx hereby test:all ${RACE_FLAG:+"$RACE_FLAG"} ${NOEMBED_FLAG:+"$NOEMBED_FLAG"}
77
79
env :
78
80
RACE_FLAG : ${{ (matrix.race && '--race') || '' }}
79
81
NOEMBED_FLAG : ${{ (matrix.noembed && '--noembed') || '' }}
80
82
81
83
- run : git add .
82
84
- run : git diff --staged --exit-code --stat
83
85
86
+ - name : Print baseline diff on failure
87
+ if : ${{ failure() && steps.test.conclusion == 'failure' }}
88
+ run : |
89
+ npx hereby baseline-accept
90
+ git add testdata/baselines/reference
91
+ git diff --staged --exit-code
92
+
84
93
lint :
85
94
runs-on : ubuntu-latest
86
95
steps :
You can’t perform that action at this time.
0 commit comments