diff --git a/.github/workflows/on-pull-request.yml b/.github/workflows/on-pull-request.yml index 7b07e62..01ec7f8 100644 --- a/.github/workflows/on-pull-request.yml +++ b/.github/workflows/on-pull-request.yml @@ -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 diff --git a/Makefile b/Makefile index 73fa667..e95f890 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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