Simplify branch protect interface (#6688) #6228
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-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
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 |