Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Docker Compose config validation #2

Merged
merged 1 commit into from
Aug 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,9 @@ jobs:
pip install --upgrade pip
pip install --no-deps -r dev-requirements.txt

# This file is required for Docker Compose validation.
- name: Create empty .env file
run: touch docker/prometheus-exporter/.env

- name: Run checks
run: make check
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
check: black-check isort-check ruff-check pip-audit
check: black-check isort-check ruff-check pip-audit docker-compose-validate

black-check:
black --check main.py
Expand All @@ -11,3 +11,6 @@ ruff-check:

pip-audit:
pip-audit --strict --desc -r dev-requirements.txt -r requirements.txt

docker-compose-validate:
docker compose config -q