From f57d5c797adc5d6dc27d98c95e59082141fca6f6 Mon Sep 17 00:00:00 2001 From: Donkie Date: Thu, 18 May 2023 16:01:38 +0200 Subject: [PATCH] Split action into multiple jobs --- .github/workflows/integration-test.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index eeb1a55..55565a8 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -11,10 +11,7 @@ env: TEST_TAG: donkie/spoolman:test jobs: - tests: - strategy: - matrix: - dbtype: ["postgres"] + build: runs-on: ubuntu-latest steps: - name: Checkout @@ -27,12 +24,28 @@ jobs: context: . load: true tags: donkie/spoolman:test + build-tester: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 - name: Build Spoolman Tester uses: docker/build-push-action@v4 with: context: ./tests_integration load: true tags: donkie/spoolman-tester:latest + tests: + needs: [build, build-tester] + strategy: + matrix: + dbtype: ["postgres"] + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 - uses: isbang/compose-action@v1.4.1 with: compose-file: "./tests_integration/docker-compose-${{ matrix.dbtype }}.yml"