diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index abfd1bd2..7b90498a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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