Skip to content

Commit 47759e8

Browse files
authored
Reflection Golden Tests: Report changes via GitHub Actions annotation (#5697)
1 parent eac23f0 commit 47759e8

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/reflection-golden-test.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,13 @@ jobs:
119119
- uses: "ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520" # v3
120120

121121
- name: "Reflection golden test"
122-
run: "make tests-golden-reflection || true"
122+
run: |
123+
set +e
124+
make tests-golden-reflection
125+
exit_code="$?"
126+
127+
if [[ "$exit_code" != "0" ]]; then
128+
echo "::notice file=.github/workflows/reflection-golden-test.yml,line=3 ::Reflection golden tests detected changes by this pull request - see https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"
129+
fi
130+
131+
exit 0

0 commit comments

Comments
 (0)