Repository navigation
Refresh template conventions and add Omada #3
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Validate Compose templates | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v7 | |
| - name: Validate active Compose files | |
| shell: bash | |
| run: | | |
| set -uo pipefail | |
| failed=0 | |
| while IFS= read -r file; do | |
| echo "Validating ${file}" | |
| if ! output=$(docker compose -f "${file}" config --no-interpolate --quiet 2>&1); then | |
| message=${output//$'\n'/'%0A'} | |
| echo "::error file=${file}::${message}" | |
| failed=1 | |
| fi | |
| done < <(find . -type f \( -name '*compose*.yaml' -o -name '*compose*.yml' \) -not -path './.retired/*' -not -path './.github/*' -print | sort) | |
| exit "${failed}" |