Add tests after each test file to check for running/leftover steampipe processes

This commit is contained in:
Puskar Basu
2023-06-22 20:50:13 +05:30
committed by GitHub
parent 0bdb66c901
commit f176fdca17
24 changed files with 225 additions and 15 deletions

View File

@@ -7,6 +7,7 @@ env:
SPIPETOOLS_PG_CONN_STRING: ${{ secrets.SPIPETOOLS_PG_CONN_STRING }}
SPIPETOOLS_TOKEN: ${{ secrets.SPIPETOOLS_TOKEN }}
GH_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
STEAMPIPE_LOG: info
jobs:
goreleaser:
@@ -195,20 +196,6 @@ jobs:
path: ~/.steampipe/logs
if-no-files-found: error
- name: Check steampipe processes running
continue-on-error: true
run: |
ps -ef | grep "steampipe"
- name: Verify No Steampipe Processes Running
continue-on-error: false
run: |
if [ $(ps aux | grep steampipe | grep -v bats |grep -v grep | wc -l | tr -d ' ') -eq 0 ]; then
exit 0
else
exit 1
fi
# This job checks whether the test suite has passed or not.
# Since the exit_code is set only when the bats test suite pass,
# we have added the if-conditional block