Skip to content

Commit

Permalink
Merge pull request #4231 from thaJeztah/23.0_backport_test_fixes
Browse files Browse the repository at this point in the history
[23.0 backport] ci: add validation for generated docs, bump docker/bake-action
  • Loading branch information
thaJeztah committed Apr 26, 2023
2 parents ced769f + 17357a7 commit 91b7318
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
uses: docker/setup-buildx-action@v2
-
name: Build
uses: docker/bake-action@v2
uses: docker/bake-action@v3
with:
targets: ${{ matrix.target }}
set: |
Expand Down Expand Up @@ -121,7 +121,7 @@ jobs:
uses: docker/setup-buildx-action@v2
-
name: Build
uses: docker/bake-action@v2
uses: docker/bake-action@v3
with:
targets: plugins-cross
set: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: docker/setup-buildx-action@v2
-
name: Test
uses: docker/bake-action@v2
uses: docker/bake-action@v3
with:
targets: test-coverage
-
Expand Down
27 changes: 22 additions & 5 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,33 @@ jobs:
-
name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Run
uses: docker/bake-action@v2
uses: docker/bake-action@v3
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 All @@ -49,8 +68,6 @@ jobs:
-
name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Run
shell: 'script --return --quiet --command "bash {0}"'
Expand Down

0 comments on commit 91b7318

Please sign in to comment.