Skip to content

Commit

Permalink
ci: add validation for generated markdown
Browse files Browse the repository at this point in the history
Signed-off-by: David Karlsson <david.karlsson@docker.com>
(cherry picked from commit 25ed784)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
dvdksn authored and thaJeztah committed Apr 26, 2023
1 parent ced769f commit 4a42917
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,27 @@ jobs:
with:
targets: ${{ matrix.target }}

# check that the generated Markdown and the checked-in files match
validate-md:
runs-on: ubuntu-20.04
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Generate
shell: 'script --return --quiet --command "bash {0}"'
run: |
make -f docker.Makefile mddocs
-
name: Validate
run: |
if [[ $(git diff --stat) != '' ]]; then
echo 'fail: generated files do not match checked-in files'
git --no-pager diff
exit 1
fi
validate-make:
runs-on: ubuntu-20.04
strategy:
Expand Down

0 comments on commit 4a42917

Please sign in to comment.