-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Finalize changes to build size action (#1300)
- Loading branch information
1 parent
dec8f2d
commit 2391dcf
Showing
5 changed files
with
195 additions
and
53 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,15 +95,47 @@ jobs: | |
uses: newrelic/[email protected] | ||
with: | ||
apiKey: ${{ secrets.INTERNAL_STAGING_INGEST_LICENSE_KEY }} | ||
guid: NTUwMzUyfEJST1dTRVJ8QVBQTElDQVRJT058ODkzODM5MjI | ||
guid: ${{ secrets.INTERNAL_STAGING_INGEST_ENTITY_GUID }} | ||
commit: "${{ github.sha }}" | ||
version: "${{ github.ref_name }}" | ||
user: "${{ github.actor }}" | ||
# track build size as custom event | ||
- name: Report local stats as NR event | ||
uses: './.github/actions/nr-report-build-size' | ||
- name: Get local stats | ||
id: get-stats | ||
shell: bash | ||
run: | | ||
rum=$(cat ./build/nr-rum-standard.stats.json); echo "rum=$rum" >> $GITHUB_OUTPUT; | ||
full=$(cat ./build/nr-full-standard.stats.json); echo "full=$full" >> $GITHUB_OUTPUT; | ||
spa=$(cat ./build/nr-spa-standard.stats.json); echo "spa=$spa" >> $GITHUB_OUTPUT; | ||
- name: Report lite size to NR | ||
uses: newrelic/capture-build-size@main | ||
with: | ||
nr-api-key: ${{ secrets.INTERNAL_STAGING_INGEST_LICENSE_KEY }} | ||
nr-account-id: ${{ secrets.INTERNAL_STAGING_INGEST_ACCOUNT_ID }} | ||
nr-env: 'staging' | ||
analysis-file-contents: ${{ steps.get-stats.outputs.rum }} | ||
file-name-filter: '.min.js' | ||
trigger: 'publish-dev' | ||
traverse: true | ||
- name: Report pro size to NR | ||
uses: newrelic/capture-build-size@main | ||
with: | ||
nr-api-key: ${{ secrets.INTERNAL_STAGING_INGEST_LICENSE_KEY }} | ||
nr-account-id: ${{ secrets.INTERNAL_STAGING_INGEST_ACCOUNT_ID }} | ||
nr-env: 'staging' | ||
analysis-file-contents: ${{ steps.get-stats.outputs.full }} | ||
file-name-filter: '.min.js' | ||
trigger: 'publish-dev' | ||
traverse: true | ||
- name: Report spa size to NR | ||
uses: newrelic/capture-build-size@main | ||
with: | ||
nr-api-key: ${{ secrets.INTERNAL_STAGING_INGEST_LICENSE_KEY }} | ||
nr-account-id: ${{ secrets.INTERNAL_STAGING_INGEST_ACCOUNT_ID }} | ||
nr-env: 'staging' | ||
analysis-file-contents: ${{ steps.get-stats.outputs.spa }} | ||
file-name-filter: '.min.js' | ||
trigger: 'publish-dev' | ||
traverse: true | ||
|
||
# Publish dev to staging NRDB | ||
# publish-dev-nr: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters