Skip to content

Commit db12742

Browse files
authored
Print out test diff on failure in create-cache (#1572)
1 parent 29b9b8a commit db12742

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/actions/setup-go/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,13 @@ runs:
8989

9090
- if: ${{ inputs.create == 'true' }}
9191
shell: bash
92+
id: setup-go-test
9293
run: npx hereby test
9394

95+
- if: ${{ failure() && inputs.create == 'true' && steps.setup-go-test.conclusion == 'failure' }}
96+
shell: bash
97+
run: git diff --diff-filter=AM --no-index ./testdata/baselines/reference ./testdata/baselines/local
98+
9499
- if: ${{ inputs.create == 'true' }}
95100
shell: bash
96101
run: npx hereby test --coverage

0 commit comments

Comments
 (0)