Skip to content

Commit

Permalink
Merge pull request #208 from antoineB/feature/ci_missing_unexpected
Browse files Browse the repository at this point in the history
feat: Add checking for MISSING and UNEXPECTED in addition to ERROR in…
  • Loading branch information
dmfay authored Oct 25, 2023
2 parents 087d5b4 + 9308ce9 commit 5660d80
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,20 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: |
STATUS=0
if [[ $(grep -rn --exclude=errors.txt ERROR test/ | wc -l) -gt 0 ]]; then
echo "Found 'ERROR' in tests: "
grep -rn --exclude=errors.txt ERROR test/ | cut -f1,2 -d:
exit 1
else
exit 0
STATUS=1
fi
if [[ $(grep -rn --exclude=errors.txt MISSING test/ | wc -l) -gt 0 ]]; then
echo "Found 'MISSING' in tests: "
grep -rn --exclude=errors.txt MISSING test/ | cut -f1,2 -d:
STATUS=1
fi
if [[ $(grep -rn --exclude=errors.txt UNEXPECTED test/ | wc -l) -gt 0 ]]; then
echo "Found 'UNEXPECTED' in tests: "
grep -rn --exclude=errors.txt UNEXPECTED test/ | cut -f1,2 -d:
STATUS=1
fi
exit $STATUS

0 comments on commit 5660d80

Please sign in to comment.