diff --git a/.github/workflows/st2-docker.yml b/.github/workflows/st2-docker.yml index 1c47c511..e1dbee5c 100644 --- a/.github/workflows/st2-docker.yml +++ b/.github/workflows/st2-docker.yml @@ -21,6 +21,7 @@ jobs: docker-compose-up: runs-on: ubuntu-latest + needs: [docker-compose-lint] steps: - uses: actions/checkout@v3 @@ -32,10 +33,13 @@ jobs: run: | docker-compose up --detach - - name: Run st2 smoke-tests + - name: Sleep run: | sleep 60 - docker-compose -f tests/st2tests.yaml up + + - name: Run st2 smoke-tests + run: | + docker-compose --file tests/st2tests.yaml run st2test - name: Troubleshooting the build failure if: ${{ failure() }} @@ -43,3 +47,4 @@ jobs: docker-compose ps # Display logs to help troubleshoot build failures, etc docker-compose logs --tail="500" st2api + exit 1 diff --git a/tests/st2tests.sh b/tests/st2tests.sh index c2638df4..36386eb3 100755 --- a/tests/st2tests.sh +++ b/tests/st2tests.sh @@ -7,9 +7,9 @@ load "${BATS_HELPERS_DIR}/bats-file/load.bash" @test 'st2 version deployed and python env are as expected' { run st2 --version assert_success - # st2 3.3dev (9ea417346), on Python 3.6.9 + # st2 3.7.0, on Python 3.8.10 assert_line --partial "st2 ${ST2_VERSION}" - assert_line --partial 'on Python 3.6.9' + assert_line --partial 'on Python 3.8.10' } @test 'ST2_AUTH_URL service endpoint is accessible and working' {