diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0636ebf..1577053 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,6 +30,7 @@ jobs: docker compose -f tests/ymls/ports/docker-compose.yml config -q docker compose -f tests/ymls/volumes/docker-compose.yml config -q docker compose -f examples/full-stack-node-app/docker-compose.yml config -q + docker compose -f examples/non-normative/docker-compose.yml config -q - name: Setup Python 3.10.4 uses: actions/setup-python@v3 diff --git a/tests/test_cli.py b/tests/test_cli.py index 7c28d72..bfcdbcd 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -16,10 +16,10 @@ runner = CliRunner() "tests/ymls/extends/docker-compose.yml", "tests/ymls/links/docker-compose.yml", "tests/ymls/networks/docker-compose.yml", - "tests/ymls/others/docker-compose.yml", "tests/ymls/ports/docker-compose.yml", "tests/ymls/volumes/docker-compose.yml", "examples/full-stack-node-app/docker-compose.yml", + "examples/non-normative/docker-compose.yml", ], ) def test_cli(test_file_path: str) -> None: diff --git a/tests/test_parse_file.py b/tests/test_parse_file.py index d624a43..f384789 100644 --- a/tests/test_parse_file.py +++ b/tests/test_parse_file.py @@ -17,11 +17,15 @@ from compose_viz.volume import Volume, VolumeType services=[ Service( name="frontend", - image="build from ./frontend", + image="build from './frontend', image: awesome/frontend", ), Service( name="backend", - image="build from backend", + image="build from 'backend' using '../backend.Dockerfile'", + ), + Service( + name="db", + image="build from './db'", ), ], ), diff --git a/tests/ymls/builds/docker-compose.yml b/tests/ymls/builds/docker-compose.yml index 322a355..fff4866 100644 --- a/tests/ymls/builds/docker-compose.yml +++ b/tests/ymls/builds/docker-compose.yml @@ -6,7 +6,10 @@ services: build: ./frontend backend: - image: awesome/backend build: context: backend dockerfile: ../backend.Dockerfile + + db: + build: + context: ./db