1
0
mirror of https://github.com/Haxxnet/Compose-Examples synced 2024-12-26 04:00:20 +00:00
Compose-Examples/.github/workflows/validator.yml
LRVT a73d332ef9
Update validator.yml
ignore docs path
2024-03-13 21:46:09 +01:00

35 lines
924 B
YAML

name: CI
on:
push:
branches: [ "main" ]
paths-ignore:
- 'README.md'
- 'examples/**/README.md'
- 'docs/**'
pull_request:
branches: [ "main" ]
paths-ignore:
- 'README.md'
- 'examples/**/README.md'
- 'docs/**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
validateComposeSyntax:
runs-on: ubuntu-latest
#continue-on-error: true
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Loops over all compose files and uses docker compose check for YML validation
- name: DockerComposeCheck
run: |
for f in $(find ${PWD}/examples -name '*docker-compose*.yml'); \
do \
readlink -f $f && \
docker compose -f $(readlink -f $f) config --quiet; \
done
if: always()