From 6f15d10d72cb1a276fd98703a0f2f12e7779be10 Mon Sep 17 00:00:00 2001 From: Matthias Queitsch Date: Mon, 19 Jun 2023 21:10:53 +0200 Subject: [PATCH 1/2] ci: check tests for `ERROR` --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index abfd1bd..8daeae1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,3 +21,20 @@ 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 + - uses: actions/setup-node@v3 + with: + node-version: 18 + - 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 From 89ca91e234a9160f8f80b05ef52de1d72f56b25a Mon Sep 17 00:00:00 2001 From: Matthias Queitsch Date: Mon, 19 Jun 2023 21:17:07 +0200 Subject: [PATCH 2/2] ci: remove uncessary node step --- .github/workflows/ci.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8daeae1..7b90498 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,9 +27,6 @@ jobs: fail-fast: true steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 18 - run: | if [[ $(grep -rn --exclude=errors.txt ERROR test/ | wc -l) -gt 0 ]]; then echo "Found 'ERROR' in tests: "