-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #938 from ZeLonewolf/zlw-consolidate-workflow
Migrate performance checks to privileged runner
- Loading branch information
Showing
2 changed files
with
16 additions
and
17 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -49,6 +49,11 @@ jobs: | |
npm run style | ||
npm run shields | ||
cp src/configs/config.aws.js src/config.js | ||
- name: Upload Build artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: americana | ||
path: dist/ | ||
- name: Capture PR branch usage statistics | ||
id: pr-stats | ||
run: | | ||
|
@@ -63,21 +68,6 @@ jobs: | |
echo '${{ env.MAIN_STATS }}' | ||
echo '${{ env.PR_STATS }}' | ||
npm exec ts-node scripts/stats_compare '${{ env.MAIN_STATS }}' '${{ env.PR_STATS }}' > pr/stats-difference.md | ||
- name: Print Stats to GitHub Checks | ||
uses: LouisBrunner/[email protected] | ||
if: always() | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
name: Performance Metrics | ||
conclusion: neutral | ||
output: | | ||
{"summary":"Style size changes introduced by this PR"} | ||
output_text_description_file: pr/stats-difference.md | ||
- name: Upload Build artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: americana | ||
path: dist/ | ||
- name: Save PR artifacts | ||
env: | ||
PR_NUMBER: ${{ github.event.pull_request.number }} | ||
|
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 |
---|---|---|
|
@@ -126,6 +126,15 @@ jobs: | |
conclusion: neutral | ||
output: | | ||
{"summary":"Preview map changes introduced by this PR", "title":"View live map and artifacts"} | ||
images: | | ||
[{"image_url":"https://preview.ourmap.us/pr/${{ env.PR_NUM }}/sprites/sprite.png", "caption":"Sprite Sheet", "alt":"1x Sprite Sheet"}] | ||
output_text_description_file: pr_preview.md | ||
- name: Print Stats to GitHub Checks | ||
uses: LouisBrunner/[email protected] | ||
if: always() | ||
with: | ||
sha: ${{ env.PR_SHA }} | ||
token: ${{ steps.checks_token.outputs.token }} | ||
name: Style Performance | ||
conclusion: neutral | ||
output: | | ||
{"summary":"Style size changes introduced by this PR", "title":"View metrics on style size changes"} | ||
output_text_description_file: stats-difference.md |