Skip to content

Commit

Permalink
haskell.yml: fail if some golden files are unused
Browse files Browse the repository at this point in the history
  • Loading branch information
smelc committed Apr 16, 2024
1 parent 492b85e commit 50b533b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/haskell.yml
Expand Up @@ -144,6 +144,16 @@ jobs:
CREATE_GOLDEN_FILES: 1
run: cabal test all --enable-tests --test-show-details=direct -j1

- name: Check golden files are all being used
run: |
NB_UNUSED_GOLDEN_FILES=$(git ls-files -d | wc -l)
if [[ "$NB_UNUSED_GOLDEN_FILES" != "0" ]]; then
echo "⚠️ The following golden files are not used anymore:"
git ls-files -d
echo "Please delete them."
exit 1
fi
- name: "Tar artifacts"
run: |
mkdir -p artifacts
Expand Down

0 comments on commit 50b533b

Please sign in to comment.