From dadc7472d2f23a93ccacae69ba3ece316e875b9b Mon Sep 17 00:00:00 2001 From: Emterry Date: Tue, 3 Dec 2024 16:27:35 +0000 Subject: [PATCH] add build step --- .github/workflows/test.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9db9aacb..9090d16d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,11 +23,17 @@ jobs: # id: setup_container_structure_test # uses: ministryofjustice/github-actions/setup-container-structure-test@ccf9e3a4a828df1ec741f6c8e6ed9d0acaef3490 # v18.5.0 - - name: Install Docker Compose + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Build with Docker Compose + id: build + shell: bash + env: + IMAGE_NAME: ${{ github.repository }} + IMAGE_TAG: ${{ github.sha }} run: | - sudo curl -L "https://github.com/docker/compose/releases/download/v2.21.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose - sudo chmod +x /usr/local/bin/docker-compose - docker-compose --version + docker compose build + - name: Run tests run: make test-python \ No newline at end of file