-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into duplicate-console
- Loading branch information
Showing
6 changed files
with
83 additions
and
46 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
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Report Results to PR | ||
|
||
on: | ||
# The pull_request event can't write comments for PRs from forks so using this | ||
# workflow_run workflow as a workaround | ||
workflow_run: | ||
workflows: ['Benchmarks'] | ||
branches: ['**'] | ||
types: | ||
- completed | ||
- requested | ||
|
||
jobs: | ||
report_running: | ||
name: Report benchmarks are in-progress | ||
runs-on: ubuntu-latest | ||
# Only add the "benchmarks are running" text when a workflow_run is | ||
# requested (a.k.a starting) | ||
if: ${{ github.event.action == 'requested' }} | ||
steps: | ||
- name: Report Tachometer Running | ||
uses: andrewiggins/tachometer-reporter-action@v2 | ||
with: | ||
# Set initialize to true so this action just creates the comment or | ||
# adds the "benchmarks are running" text | ||
initialize: true | ||
|
||
report_results: | ||
name: Report benchmark results | ||
runs-on: ubuntu-latest | ||
# Only run this job if the event action was "completed" and the triggering | ||
# workflow_run was successful | ||
if: ${{ github.event.action == 'completed' && github.event.workflow_run.conclusion == 'success' }} | ||
steps: | ||
# Download the artifact from the triggering workflow that contains the | ||
# Tachometer results to report | ||
- uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
workflow: ${{ github.event.workflow.id }} | ||
run_id: ${{ github.event.workflow_run.id }} | ||
name: results | ||
path: results | ||
|
||
# Create/update the comment with the latest results | ||
- name: Report Tachometer Results | ||
uses: andrewiggins/tachometer-reporter-action@v2 | ||
with: | ||
path: results/*.json | ||
base-bench-name: preact-master | ||
pr-bench-name: preact-local | ||
summarize: 'duration, usedJSHeapSize' |
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 |
---|---|---|
@@ -1,15 +1,17 @@ | ||
name: Compressed Size | ||
|
||
on: [pull_request] | ||
on: | ||
pull_request: | ||
branches: | ||
- '**' | ||
paths: | ||
- '**/src/**.js' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2-beta | ||
with: | ||
fetch-depth: 1 | ||
- uses: actions/checkout@v2 | ||
- uses: preactjs/compressed-size-action@v1 | ||
with: | ||
repo-token: '${{ secrets.GITHUB_TOKEN }}' |
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
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