Skip to content

Commit

Permalink
Merge pull request #157 from matthias-Q/ci_validate_tests
Browse files Browse the repository at this point in the history
ci: check tests for `ERROR`
  • Loading branch information
matthias-Q committed Jun 19, 2023
2 parents 98a7fc9 + 89ca91e commit c5b1548
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,17 @@ jobs:
node-version: 18
- run: npm install
- run: npm test
validate_tests:
runs-on: ["ubuntu-latest"]
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v3
- run: |
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
fi

0 comments on commit c5b1548

Please sign in to comment.