From b49423d29b7d03a6aceaf46d5afbb5c5a66d129e Mon Sep 17 00:00:00 2001 From: Douglas DUTEIL Date: Fri, 7 Feb 2025 17:35:09 +0100 Subject: [PATCH] ci(github): isolate container test workflow --- .github/workflows/container.yml | 15 +++++++++++++++ .github/workflows/docker.yml | 13 ------------- 2 files changed, 15 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/container.yml diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml new file mode 100644 index 000000000..8ba9e3b62 --- /dev/null +++ b/.github/workflows/container.yml @@ -0,0 +1,15 @@ +name: Container Tests + +jobs: + integration_test: + name: 🚥 Container test + needs: + - Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: docker pull ghcr.io/${{ github.repository }}:${{ github.sha }} + - name: 🚥 Run Container Tests + uses: docker://gcr.io/gcp-runtimes/container-structure-test:v1.15.0 + with: + args: test --config container-structure-test.yml --image ghcr.io/${{ github.repository }}:${{ github.sha }} --verbosity debug diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index e5daaaa9c..37ca4aa51 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -41,16 +41,3 @@ jobs: cache-to: type=registry,ref=ghcr.io/${{ github.repository }}:buildcache,mode=max build-args: | SOURCE_COMMIT=${{ github.sha }} - - integration_test: - name: 🚥 Integration test - needs: - - Build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - run: docker pull ghcr.io/${{ github.repository }}:${{ github.sha }} - - name: 🚥 Run Container Tests - uses: docker://gcr.io/gcp-runtimes/container-structure-test:v1.15.0 - with: - args: test --config container-structure-test.yml --image ghcr.io/${{ github.repository }}:${{ github.sha }} --verbosity debug