fix: invalidate control map when we injectUi5 #156
Workflow file for this run
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
name: TS-app | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
# relevant | |
- "client-side-js/**" | |
- "examples/**" | |
- "scripts/**" | |
- "src/**" | |
# don't run on changes to these | |
- "!.husky/**" | |
- "!.vscode/**" | |
- "!docs/**" | |
- "!.*" | |
- "!*.md" | |
- "!*.cjs" | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16, 18, 19, 20] | |
steps: | |
- name: update chrome | |
run: | | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' | |
sudo apt-get update | |
sudo apt-get --only-upgrade install google-chrome-stable | |
# check chrome version | |
google-chrome --version | |
- name: check out repo | |
uses: actions/checkout@v3 | |
- name: use node ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "npm" | |
cache-dependency-path: "**/package-lock.json" | |
# install both module + sample app(s) deps | |
- name: install packages (wdi5 + sample app(s)) | |
run: | | |
npm pkg delete scripts.prepare | |
npm ci | |
# build things | |
- name: build | |
run: npm run build | |
# run wdi5 tests within app(s) | |
# this includes test for late-injecting wdi5 | |
- name: test ts-app | |
run: npm run test-h:ts-app | |
# this runs against the deployed wdi5 TS sample app | |
- name: test devtools support | |
run: npm run test:protocol |