Skip to content
Draft

Test CI #33728

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
11 changes: 11 additions & 0 deletions .github/workflows/visual-tests-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1212,13 +1212,24 @@ jobs:
working-directory: apps/demos
run: pnpm add ../../devextreme-installer.tgz ../../devextreme-dist-installer.tgz ../../devextreme-react-installer.tgz ../../devextreme-vue-installer.tgz ../../devextreme-angular-installer.tgz

# All three frameworks now bundle production-style via csp-bundle.js
# (esbuild + per-framework AOT plugin where applicable). Angular uses
# @angular/build/private's createCompilerPlugin under the hood — see
# apps/demos/utils/server/csp-bundle-angular.js. Pages load orders of
# magnitude faster than the old SystemJS dev path and the CSP profile
# matches production (no inline scripts, no 'unsafe-eval').
- name: Bundle demos for CSP check
working-directory: apps/demos
run: node utils/server/csp-bundle.js --framework=${{ matrix.FRAMEWORK }}

- name: Start CSP Server
run: node apps/demos/utils/server/csp-server.js 8080 &

- name: Run CSP Check
working-directory: apps/demos
env:
CSP_FRAMEWORKS: ${{ matrix.FRAMEWORK }}
CSP_USE_BUNDLED: '1'
CHROME_PATH: google-chrome-stable
run: node utils/server/csp-check.js

Expand Down
7 changes: 7 additions & 0 deletions apps/demos/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ Demos/**/tsconfig.json
publish-demos

csp-reports
csp-bundled-demos

# Scratch artifacts produced by utils/server/csp-bundle-angular.js. The script
# cleans these up after a successful run, but a SIGKILL / power loss may leave
# them behind — ignoring keeps them out of `git status`.
utils/server/.csp-bundle-angular-*
Demos/**/.csp-bundle-angular-patched.*.ts

.angular
angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0" />
<link rel="stylesheet" type="text/css" href="../../../../node_modules/devextreme-dist/css/dx.light.css" />
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" />

<script src="../../../../node_modules/core-js/client/shim.min.js"></script>
<script src="../../../../node_modules/zone.js/bundles/zone.umd.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0" />
<link rel="stylesheet" type="text/css" href="../../../../node_modules/devextreme-dist/css/dx.light.css" />
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" />

<script src="../../../../node_modules/core-js/client/shim.min.js"></script>
<script src="../../../../node_modules/zone.js/bundles/zone.umd.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion apps/demos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@angular/cli": "~21.1.5",
"@angular/common": "~21.1.0",
"@angular/compiler": "~21.2.0",
"@angular/compiler-cli": "~21.1.0",
"@angular/compiler-cli": "~21.2.0",
"@angular/core": "~21.2.4",
"@angular/forms": "~21.1.0",
"@angular/platform-browser": "~21.1.0",
Expand Down
Loading
Loading