From dcf52af5725ac8ba1cf4f561689077886f8f3e43 Mon Sep 17 00:00:00 2001 From: TobiPeterG Date: Thu, 29 Aug 2024 22:18:10 +0200 Subject: [PATCH] install docker-compose in ci --- .github/workflows/ci.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 13775964..6e7840e2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,16 +14,21 @@ concurrency: # Cancel any existing runs of this workflow for this same PR jobs: test: - runs-on: "ubuntu-20.04" + runs-on: ubuntu-latest env: NAUTOBOT_VER: "2.3.1" PYTHON_VER: "3.11" steps: - name: "Get go-nautobot code" uses: actions/checkout@v3 + - name: "Set up Docker Compose" + run: | + curl -L "https://github.com/docker/compose/releases/download/v2.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose + chmod +x /usr/local/bin/docker-compose - name: "Run tests" - run: "cd development" - run: "docker-compose --project-name go_nautobot -f docker-compose.yml up --build --abort-on-container-exit --exit-code-from oapi" + run: | + cd development + docker-compose --project-name go_nautobot -f docker-compose.yml up --build --abort-on-container-exit --exit-code-from oapi env: NAUTOBOT_URL: "http://nautobot:8080/api/" NAUTOBOT_TOKEN: "0123456789abcdef0123456789abcdef01234567"