Skip to content

Commit

Permalink
fix(code-coverage): Exit with success if no ERROR: (Postgres)
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusSkytte committed Feb 8, 2024
1 parent 0ae1b64 commit d5386f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/code-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,16 @@ jobs:
if: always()
run: |
## --------------------------------------------------------------------
set -x
log=$(find ${{ runner.workspace }}/logs-docker/ -name '*postgres*.log')
awk '/(ERROR:|STATEMENT:)/{flag=1}/LOG:|^[A-Z]/{flag=0}flag {print $0}' $log
# Throw error if ERRORs are found
grep -q "ERROR:" $log && { echo "PostgreSQL ERRORs found"; exit 1; }
if echo "$log" | grep -q "ERROR:"; then
echo "PostgreSQL ERRORs found"
exit 1
fi
code-coverage-mssql:
name: 🧪 Tests (SQL Server 2019)
Expand Down

0 comments on commit d5386f0

Please sign in to comment.