Skip to content

Commit

Permalink
feat: Smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Jan 24, 2024
1 parent 0e9dcbd commit 9ac4c1e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/smoke-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,15 @@ jobs:
"beacon_api_eth_v1_events_head"
)
# Define a function that prints the last 5 logs from all docker containers that have the argument in the name
print_logs() {
for container in $(docker ps --filter name=$1 --format "{{.Names}}"); do
echo "Logs for $container:\n\n"
docker logs --tail 5 $container
echo "\n\n"
done
}
# Check for any data in the tables before digging in to the individual sentries
for table in "${tables[@]}"; do
echo "Checking $table table..."
Expand All @@ -93,15 +102,6 @@ jobs:
fi
done
# Define a function that prints the last 5 logs from all docker containers that have the argument in the name
print_logs() {
for container in $(docker ps --filter name=$1 --format "{{.Names}}"); do
echo "Logs for $container:\n\n"
docker logs --tail 5 $container
echo "\n\n"
done
}
for table in "${tables[@]}"; do
echo "Checking $table table..."
for sentry in "${all_sentries[@]}"; do
Expand Down

0 comments on commit 9ac4c1e

Please sign in to comment.