Skip to content

Commit

Permalink
⚙️ config(ci): Add workflow to lint compose files.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed May 20, 2024
1 parent 6308ea8 commit c67d162
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/ci:lint-compose.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c67d162

Please sign in to comment.