Skip to content

install docker-compose in ci #3

install docker-compose in ci

install docker-compose in ci #3

Workflow file for this run

---
name: "CI"
on: # yamllint disable-line rule:truthy rule:comments
push:
branches:
- "main"
- "develop"
tags:
- "v*"
pull_request: ~
concurrency: # Cancel any existing runs of this workflow for this same PR
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
test:
runs-on: "ubuntu-20.04"
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: |
sudo apt-get update
sudo apt-get install -y 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"

Check failure on line 30 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 30, Col: 9): 'run' is already defined
env:
NAUTOBOT_URL: "http://nautobot:8080/api/"
NAUTOBOT_TOKEN: "0123456789abcdef0123456789abcdef01234567"
- name: "Tear down Nautobot"
run: "docker-compose --project-name go_nautobot -f development/docker-compose.yml down -v"
if: always()