Skip to content

Commit

Permalink
install docker-compose in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiPeterG committed Aug 30, 2024
1 parent 82790ca commit cae84f3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,23 @@ concurrency: # Cancel any existing runs of this workflow for this same PR

jobs:
test:
runs-on: "ubuntu-20.04"
runs-on: ubuntu-latest
container:
image: docker/compose:
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"
Expand Down

0 comments on commit cae84f3

Please sign in to comment.