Skip to content

Commit

Permalink
feat(code-coverage): Only print error context (Postgres)
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusSkytte committed Feb 7, 2024
1 parent f44b9d8 commit 732c5ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/code-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,16 +184,16 @@ jobs:
with:
dest: './logs-docs'

- name: Check docker logs for PostgreSQL errors
- name: Check docker logs for PostgreSQL ERRORs
if: always()
run: |
## --------------------------------------------------------------------
logs=$(find ${{ runner.workspace }}/logs-docs/ -name 'postgres*.log')
log=$(find ${{ runner.workspace }}/logs-docs/ -name 'postgres*.log')
cat $logs
awk '/ERROR:|STATEMENT:/{flag=1;next}/LOG:|^[^ ]|^ $/{flag=0}flag' $log
# Throw errors on ERRORs
grep -qv "ERROR" $logs || { echo "PostgreSQL backend threw ERRORs"; exit 1; }
grep -qv "ERROR" $log || { echo "PostgreSQL backend threw ERRORs"; exit 1; }
code-coverage-mssql:
name: 🧪 Tests (SQL Server 2019)
Expand Down

0 comments on commit 732c5ab

Please sign in to comment.