diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3b7e781..83b4292 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -439,6 +439,12 @@ jobs: source src/balena-tests/functions + function cleanup() { + aws ec2 describe-instances --instance-ids ${{ steps.balena-sut.outputs.instance_id }} \ + | jq -r .Reservations[].Instances[].StateReason + } + trap 'cleanup' EXIT + with_backoff balena login --token '${{ secrets.BALENA_API_KEY }}' if ! [[ -e "${HOME}/.ssh/id_rsa" ]]; then @@ -486,6 +492,12 @@ jobs: source src/balena-tests/functions + function cleanup() { + aws ec2 describe-instances --instance-ids ${{ steps.balena-sut.outputs.instance_id }} \ + | jq -r .Reservations[].Instances[].StateReason + } + trap 'cleanup' EXIT + with_backoff balena login --token '${{ secrets.BALENA_API_KEY }}' balena whoami && ssh-add -l @@ -544,6 +556,12 @@ jobs: source src/balena-tests/functions + function cleanup() { + aws ec2 describe-instances --instance-ids ${{ steps.balena-sut.outputs.instance_id }} \ + | jq -r .Reservations[].Instances[].StateReason + } + trap 'cleanup' EXIT + with_backoff balena login --token '${{ secrets.BALENA_API_KEY }}' balena whoami && ssh-add -l