-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
misc(build): report to buildtracker on commit via ghactions #10550
Changes from 11 commits
528d655
1f6ceac
9cebb71
55578fe
9ed746b
a2c941e
8e0312b
09306f4
b752d74
ff92821
d270403
fc0a137
a99353d
5993df8
b64f637
0824186
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Workflow that only runs when a commit lands on master. | ||
|
||
name: 👷♀️ | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
buildtracker: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: git clone | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js 10.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 10.x | ||
|
||
- run: yarn --frozen-lockfile | ||
- run: yarn build-all | ||
|
||
- name: Store in buildtracker | ||
run: yarn bt-cli upload-build | ||
env: | ||
# https://buildtracker.dev/docs/guides/github-actions#configuration | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. good call. |
||
BT_API_AUTH_TOKEN: ${{ secrets.BT_API_AUTH_TOKEN }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// https://buildtracker.dev/docs/installation/#upload-your-builds | ||
|
||
'use strict'; | ||
|
||
module.exports = { | ||
applicationUrl: 'https://lh-build-tracker.herokuapp.com', | ||
artifacts: [ | ||
'dist/lightrider/lighthouse-lr-bundle.js', | ||
'dist/extension/scripts/lighthouse-ext-bundle.js', | ||
'dist/lighthouse-dt-bundle.js', | ||
'dist/viewer/src/viewer.js', | ||
'dist/lightrider/report-generator-bundle.js', | ||
'dist/dt-report-resources/report.js', | ||
'dist/dt-report-resources/report-generator.js', | ||
], | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,6 +74,7 @@ | |
"static-server": "node lighthouse-cli/test/fixtures/static-server.js" | ||
}, | ||
"devDependencies": { | ||
"@build-tracker/cli": "^1.0.0-beta.14", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. theres beta 15 now paularmstrong/build-tracker@v1.0.0-beta.14...v1.0.0-beta.15 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. good catch. i actually asked him to publish that one. :) |
||
"@firebase/app-types": "0.3.1", | ||
"@firebase/auth-types": "0.3.2", | ||
"@firebase/util": "0.2.1", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wdyt of just adding this to the basic workflow? You need to install node, run yarn and build for this to work, so it's already a heavy workflow.
#10549 reused basic.yml for the same reason.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good call.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is installing node 10 so heavy? I don't understand how e.g. in https://github.com/GoogleChrome/lighthouse/pull/10549/checks?check_run_id=565300864 protoc, python, and pip run in like 3% of the time node setup does. Obviously protoc is pre-compiled, but what's the lazy node action doing in there?
If it stays at 2.5 minutes I foresee all actions going in this file :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dont know.. i see it taking a while today but in previous master commits, that step takes <3s.