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 4a3678d commit 772ca25
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/haskell.yml
Expand Up @@ -159,6 +159,16 @@ jobs:
exit 1
fi
- 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 772ca25

Please sign in to comment.