[CDA GUI] Linter, Data Query Bugs, and Improvements #8
This file contains hidden or 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: CDA Web GUI Checks | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| paths: | |
| - "cda-gui/**" | |
| - ".github/workflows/web-gui-*.yml" | |
| pull_request: | |
| branches: | |
| - develop | |
| paths: | |
| - "cda-gui/**" | |
| - ".github/workflows/web-gui-*.yml" | |
| workflow_dispatch: | |
| jobs: | |
| lint-build-and-audit: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./cda-gui | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: install node for cda-gui checks | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| cache: "npm" | |
| cache-dependency-path: cda-gui/package-lock.json | |
| - name: install dependencies | |
| run: HUSKY=0 npm ci | |
| - name: run cda-gui lint | |
| run: npm run lint | |
| - name: run cda-gui build | |
| run: npm run build | |
| - name: run cda-gui audit for critical CVE | |
| run: npm audit --audit-level=critical |