From 65b67a29b1cacb60c2ce97e3fb459b56b419bdb7 Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Wed, 21 Jan 2026 11:26:52 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8(CI)=20gives=20warning=20if=20theme?= =?UTF-8?q?=20not=20updated?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When updating the UIkit or Cunningham version, ensure to also update the theme files accordingly. --- .github/workflows/impress-frontend.yml | 39 ++++++++++++++++++++++++++ CHANGELOG.md | 1 + 2 files changed, 40 insertions(+) diff --git a/.github/workflows/impress-frontend.yml b/.github/workflows/impress-frontend.yml index 2df8692e..bb29b838 100644 --- a/.github/workflows/impress-frontend.yml +++ b/.github/workflows/impress-frontend.yml @@ -19,6 +19,8 @@ jobs: test-front: needs: install-dependencies runs-on: ubuntu-latest + permissions: + contents: read steps: - name: Checkout repository uses: actions/checkout@v4 @@ -41,6 +43,8 @@ jobs: lint-front: runs-on: ubuntu-latest needs: install-dependencies + permissions: + contents: read steps: - name: Checkout repository uses: actions/checkout@v4 @@ -193,3 +197,38 @@ jobs: strip-hash: "[-_.][a-f0-9]{8,}(?=\\.(?:js|css|html)$)" omit-unchanged: true install-script: "yarn install --frozen-lockfile" + + uikit-theme-checker: + runs-on: ubuntu-latest + needs: install-dependencies + permissions: + contents: read + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "22.x" + - name: Restore the frontend cache + uses: actions/cache@v4 + with: + path: "src/frontend/**/node_modules" + key: front-node_modules-${{ hashFiles('src/frontend/**/yarn.lock') }} + fail-on-cache-miss: true + + - name: Build theme + run: cd src/frontend/apps/impress && yarn build-theme + + - name: Ensure theme is up to date + shell: bash + run: | + if [[ -n "$(git status --porcelain)" ]]; then + echo "Error: build-theme produced git changes (tracked or untracked)." + echo "--- git status --porcelain ---" + git status --porcelain + echo "--- git diff ---" + git --no-pager diff + exit 1 + fi diff --git a/CHANGELOG.md b/CHANGELOG.md index 9044dea3..09c19204 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to - ✨(frontend) integrate configurable Waffle #1795 - ✨ Import of documents #1609 +- 🚨(CI) gives warning if theme not updated #1811 ### Changed