From b90f1fe92a1918be5f6b2faa231c4cfa77bf9ab8 Mon Sep 17 00:00:00 2001 From: projectmoon Date: Mon, 31 Aug 2020 20:57:47 +0000 Subject: [PATCH] No point in building docker image only to build it again. --- .github/workflows/dicebot-ci.yml | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/.github/workflows/dicebot-ci.yml b/.github/workflows/dicebot-ci.yml index 0f1f958..8f7bdff 100644 --- a/.github/workflows/dicebot-ci.yml +++ b/.github/workflows/dicebot-ci.yml @@ -29,26 +29,11 @@ jobs: - name: Run tests run: cargo test --verbose - docker_test: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Run tests - run: | - if [ -f docker-compose.test.yml ]; then - docker-compose --file docker-compose.test.yml build - docker-compose --file docker-compose.test.yml run sut - else - docker build . --file Dockerfile - fi - # Push image to GitHub Packages. # See also https://docs.docker.com/docker-hub/builds/ docker_push: # Ensure test job passes before pushing image. - needs: [ build_and_test, docker_test ] + needs: build_and_test runs-on: ubuntu-latest if: github.event_name == 'push'