🚨(CI) gives warning if theme not updated
When updating the UIkit or Cunningham version, ensure to also update the theme files accordingly.
This commit is contained in:
39
.github/workflows/impress-frontend.yml
vendored
39
.github/workflows/impress-frontend.yml
vendored
@@ -19,6 +19,8 @@ jobs:
|
|||||||
test-front:
|
test-front:
|
||||||
needs: install-dependencies
|
needs: install-dependencies
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -41,6 +43,8 @@ jobs:
|
|||||||
lint-front:
|
lint-front:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: install-dependencies
|
needs: install-dependencies
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -193,3 +197,38 @@ jobs:
|
|||||||
strip-hash: "[-_.][a-f0-9]{8,}(?=\\.(?:js|css|html)$)"
|
strip-hash: "[-_.][a-f0-9]{8,}(?=\\.(?:js|css|html)$)"
|
||||||
omit-unchanged: true
|
omit-unchanged: true
|
||||||
install-script: "yarn install --frozen-lockfile"
|
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
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ and this project adheres to
|
|||||||
|
|
||||||
- ✨(frontend) integrate configurable Waffle #1795
|
- ✨(frontend) integrate configurable Waffle #1795
|
||||||
- ✨ Import of documents #1609
|
- ✨ Import of documents #1609
|
||||||
|
- 🚨(CI) gives warning if theme not updated #1811
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user