From c29613c64f0e151725fea996214a777d34145056 Mon Sep 17 00:00:00 2001 From: ruigomes99 Date: Fri, 30 Aug 2024 03:16:40 +0100 Subject: [PATCH] fix --- .github/workflows/tests.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 89d8714..647888b 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -11,10 +11,17 @@ jobs: - name: Checkout code uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7 + - name: Get latest Docker Compose version + id: get-compose-version + run: | + COMPOSE_VERSION=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep 'tag_name' | cut -d\" -f4) + echo "COMPOSE_VERSION=${COMPOSE_VERSION}" >> $GITHUB_ENV + - name: Install Docker Compose run: | - sudo apt-get update - sudo apt-get install -y docker-compose + curl -L "https://github.com/docker/compose/releases/download/${{ env.COMPOSE_VERSION }}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose + chmod +x /usr/local/bin/docker-compose + docker-compose --version - name: Verify Docker Compose installation run: docker-compose --version