diff --git a/.github/workflows/ci:lint-compose.yml b/.github/workflows/ci:lint-compose.yml new file mode 100644 index 000000000..8ac239448 --- /dev/null +++ b/.github/workflows/ci:lint-compose.yml @@ -0,0 +1,45 @@ +name: ci:lint-compose + +on: + push: + branches: + - main + pull_request: + merge_group: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + + lint: + name: Continuous integration (lint compose) + + strategy: + matrix: + + config: + - sources + - build + + include: + + - config: sources + compose-flags: '' + + - config: build + compose-flags: >- + --env-file .env -f compose.yaml + --env-file .deploy/ghcr.io/.env -f .deploy/ghcr.io/compose.yaml + + runs-on: ubuntu-latest + timeout-minutes: 1 + + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v4 + + - name: Lint compose (${{ matrix.config }}) 👕 + run: | + docker compose ${{ matrix.compose-flags }} config