From e7c796a660a2b12073c469ffdfa66d5c30ae55af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= Date: Fri, 4 Apr 2025 18:14:19 +0200 Subject: [PATCH] Verify templates in CI (#5748) * Verify templates in CI * No need to install packages * Remove unnecessary fetch depth --- .github/workflows/check-templates.yml | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/check-templates.yml diff --git a/.github/workflows/check-templates.yml b/.github/workflows/check-templates.yml new file mode 100644 index 00000000..20a40b08 --- /dev/null +++ b/.github/workflows/check-templates.yml @@ -0,0 +1,28 @@ +name: Check templates +permissions: {} + +on: [ push, pull_request ] + +jobs: + docker-templates: + permissions: + contents: read + runs-on: ubuntu-24.04 + timeout-minutes: 30 + + steps: + # Checkout the repo + - name: "Checkout" + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2 + with: + persist-credentials: false + # End Checkout the repo + + - name: Run make to rebuild templates + working-directory: docker + run: make + + - name: Check for unstaged changes + working-directory: docker + run: git diff --exit-code + continue-on-error: false