Skip to content

Commit

Permalink
test GH pages
Browse files Browse the repository at this point in the history
  • Loading branch information
izaera committed Feb 11, 2025
1 parent 2574b2f commit 7fe4fe2
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/performance-report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,14 @@ jobs:
with:
java-version: '21'
distribution: 'temurin'
# - run: ant setup-profile-dxp FAILS DUE TO GITHUB CREDENTIALS: MAY NEED TO DO THE CHECKOUT BY HAND
- run: ant all
- run: yarn node-scripts report:bundle:sizes
working-directory: modules
- run: yarn node-scripts report:bundle:sizes --with-internals
working-directory: modules
- run: yarn node-scripts report:bundle:imports
working-directory: modules
- run: yarn node-scripts report:source:imports
working-directory: modules
- run: yarn node-scripts report:java:imports
working-directory: modules
# - run: build_dxp.sh
- run: generate_reports.sh
- name: Setup GitHub Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'REPORTS'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
7 changes: 7 additions & 0 deletions build_dxp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/bash

# FAILS DUE TO GITHUB CREDENTIALS: MAY NEED TO DO THE CHECKOUT BY HAND
# This may fix it: https://github.com/actions/starter-workflows/blob/main/pages/static.yml#L12
# ant setup-profile-dxp

ant all
23 changes: 23 additions & 0 deletions generate_reports.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/bash

mkdir REPORTS
echo holi! > REPORTS/perico.csv

exit 0




cd modules

yarn node-scripts report:bundle:sizes
yarn node-scripts report:bundle:sizes --with-internals
yarn node-scripts report:bundle:imports
yarn node-scripts report:source:imports
yarn node-scripts report:java:imports

cd ..

mkdir REPORTS

mv modules/*.csv REPORTS

0 comments on commit 7fe4fe2

Please sign in to comment.