Skip to content

Commit 77b69e6

Browse files
authored
[Devtools] Build as part of GHA workflow (#1015)
* Fix devtools build * Build devtools as part of GHA workflows
1 parent 7beef28 commit 77b69e6

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/workflows/test-library.yml

+5
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,11 @@ jobs:
703703
cd dashboard
704704
npm run build
705705
cd ..
706+
- name: Build Devtools
707+
run: |
708+
cd dashboard
709+
npm run devtools
710+
cd ..
706711
707712
developer:
708713
runs-on: ${{ matrix.os }}-latest

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@ lib-pyreverse:
176176
open pyreverse.png
177177

178178
devtools:
179-
pushd dashboard && npm run devtools && popd
179+
pushd dashboard && npm install && npm run devtools && popd
180180

181181
dashboard:
182-
pushd dashboard && npm run build && popd
182+
pushd dashboard && npm install && npm run build && popd
183183

184184
dashboard-clean:
185185
if [[ -d dashboard/public ]]; then rm -rf dashboard/public; fi

dashboard/src/core/devtools.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function setUpDevTools () {
3131
}
3232

3333
const chromeDevTools = path.dirname(
34-
require.resolve('chrome-devtools-frontend/front_end/inspector.json')
34+
require.resolve('chrome-devtools-frontend/front_end/visibility.gni')
3535
)
3636

3737
console.log('Destination folder: ' + destinationFolderPath)

0 commit comments

Comments
 (0)