Clone of "Bump dompurify from 3.1.0 to 3.1.7 in /webui" to get Esti to run & merge _that_ one #6511
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: Node | |
on: | |
push: | |
paths: | |
- "webui/**" | |
branches: | |
- master | |
pull_request: | |
paths: | |
- "webui/**" | |
jobs: | |
test: | |
name: Test React App | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "18.17.0" | |
cache: "npm" | |
cache-dependency-path: webui/package-lock.json | |
- name: install UI dependencies | |
run: npm ci | |
working-directory: ./webui | |
- name: run UI lint | |
run: npm run lint | |
working-directory: ./webui | |
- name: run UI tests | |
run: npm test | |
env: | |
CI: true | |
working-directory: ./webui |