|
97 | 97 | pr_number: ${{ github.event.number }} |
98 | 98 | comment: ${{ steps.asset-size-report.outputs.results }} |
99 | 99 | 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 |
100 | 136 |
|
101 | 137 | # Jobs for workflow_dispatch events |
102 | 138 |
|
|
0 commit comments