mirror of
https://github.com/turbot/steampipe.git
synced 2026-05-13 16:00:12 -04:00
Add tests after each test file to check for running/leftover steampipe processes
This commit is contained in:
15
.github/workflows/test.yml
vendored
15
.github/workflows/test.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user