Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,21 @@ jobs:
php-version: "${{ matrix.php-version }}"
db-image: "${{ matrix.db-image }}"
skip-changelog-check: true
verify-build-assets:
name: "Verify frontend build assets"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v7"
- uses: "actions/setup-node@v7"
with:
node-version-file: "package.json"
- name: "Install dependencies (triggers webpack build)"
run: "npm install"
- name: "Check generated assets are present"
run: |
for file in public/lib/apexcharts.js public/lib/carbon.js public/lib/carbon.css; do
if [ ! -s "$file" ]; then
echo "::error::Missing or empty build asset: $file"
exit 1
fi
done
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
dist/
node_modules/
vendor/
public/images/
public/lib/
.vscode/
.gh_token
*.min.*
Expand Down
55 changes: 44 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"description": "Measurement of carbon emissions of GLPI devices",
"license": "GPL-3.0-or-later",
"version": "1.3.0",
"engines": {
"node": ">= 18.12.0"
},
"dependencies": {
"apexcharts": "^3.49.0"
},
Expand All @@ -11,7 +14,7 @@
"postinstall": "npm run-script build"
},
"devDependencies": {
"copy-webpack-plugin": "^14.0.0",
"copy-webpack-plugin": "^13.0.0",
"css-loader": "^6.11.0",
"file-loader": "^6.2.0",
"glob": "^11.0.2",
Expand Down