Skip to content

Commit 70f62de

Browse files
committed
try using action
1 parent 2f8c04a commit 70f62de

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/pull-request-checks.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,42 @@ jobs:
9797
pr_number: ${{ github.event.number }}
9898
comment: ${{ steps.asset-size-report.outputs.results }}
9999
comment_tag: <!-- browser_agent asset size report -->
100+
- name: Get local stats
101+
id: get-stats
102+
run: |
103+
rum=$(cat ../../build/nr-rum-standard.stats.json); ; echo "rum=$rum" >> $GITHUB_OUTPUT;
104+
full=$(cat ../../build/nr-full-standard.stats.json); ; echo "full=$full" >> $GITHUB_OUTPUT;
105+
spa=$(cat ../../build/nr-spa-standard.stats.json); ; echo "spa=$spa" >> $GITHUB_OUTPUT;
106+
- name: Report rum size to NR
107+
uses: metal-messiah/webpack-build-size-action
108+
with:
109+
nr-api-key: ${{ secrets.INTERNAL_STAGING_INGEST_LICENSE_KEY }}
110+
nr-account-id: '550352'
111+
nr-env: 'staging'
112+
analysis-type: 'webpack'
113+
analysis-file-contents: ${{ steps.get-stats.outputs.rum }}
114+
file-name-filter: '.min.js'
115+
traverse: false
116+
- name: Report full size to NR
117+
uses: metal-messiah/webpack-build-size-action
118+
with:
119+
nr-api-key: ${{ secrets.INTERNAL_STAGING_INGEST_LICENSE_KEY }}
120+
nr-account-id: '550352'
121+
nr-env: 'staging'
122+
analysis-type: 'webpack'
123+
analysis-file-contents: ${{ steps.get-stats.outputs.full }}
124+
file-name-filter: '.min.js'
125+
traverse: false
126+
- name: Report spa size to NR
127+
uses: metal-messiah/webpack-build-size-action
128+
with:
129+
nr-api-key: ${{ secrets.INTERNAL_STAGING_INGEST_LICENSE_KEY }}
130+
nr-account-id: '550352'
131+
nr-env: 'staging'
132+
analysis-type: 'webpack'
133+
analysis-file-contents: ${{ steps.get-stats.outputs.spa }}
134+
file-name-filter: '.min.js'
135+
traverse: false
100136

101137
# Jobs for workflow_dispatch events
102138

0 commit comments

Comments
 (0)