Skip to content
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

Merged
merged 16 commits into from
Apr 14, 2020
9 changes: 9 additions & 0 deletions .github/workflows/basics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,12 @@ jobs:
- run: yarn lint
- run: yarn unit-core
- run: yarn tsc -p .

# buildtracker runs `git merge-base HEAD origin/master` which needs more history than depth=1. https://github.com/paularmstrong/build-tracker/issues/106
- name: Deepen git fetch (for buildtracker)
run: git fetch --deepen=100
- name: Store in buildtracker
run: yarn bt-cli upload-build
env:
# https://buildtracker.dev/docs/guides/github-actions#configuration
BT_API_AUTH_TOKEN: ${{ secrets.BT_API_AUTH_TOKEN }}
16 changes: 16 additions & 0 deletions build-tracker.config.js
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',
],
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
"static-server": "node lighthouse-cli/test/fixtures/static-server.js"
},
"devDependencies": {
"@build-tracker/cli": "^1.0.0-beta.15",
"@firebase/app-types": "0.3.1",
"@firebase/auth-types": "0.3.2",
"@firebase/util": "0.2.1",
Expand Down
Loading