Skip to content

Commit

Permalink
Startup nitro-testnode in release CI
Browse files Browse the repository at this point in the history
  • Loading branch information
anodar committed Feb 9, 2024
1 parent ab6790a commit 56f355a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ jobs:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ hashFiles('Dockerfile') }}
restore-keys: ${{ runner.os }}-buildx-

- name: Startup Nitro testnode
run: .scripts/startup-testnode.bash
13 changes: 13 additions & 0 deletions scripts/startup-testnode.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
# The script starts up the test node (with timeout 1 minute), to make sure the
# nitro-testnode script isn't out of sync with flags with nitro.
# This is used in CI, basically as smoke test.

timeout 60 ./nitro-testnode/test-node.bash --init --dev || exit_status=$?

if [ -n "$exit_status" ] && [ $exit_status -ne 0 ] && [ $exit_status -ne 124 ]; then
echo "Startup failed."
exit $exit_status
fi

echo "Startup succeeded."

0 comments on commit 56f355a

Please sign in to comment.