LP#2110907 Staff Portal Links Open in New Tab #224
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: Run OPAC unit tests | |
| on: | |
| push: | |
| paths: | |
| - 'Open-ILS/web/**' | |
| pull_request: | |
| paths: | |
| - 'Open-ILS/web/**' | |
| defaults: | |
| run: | |
| working-directory: Open-ILS/web/opac/deps | |
| jobs: | |
| test: | |
| name: Run OPAC unit tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: 'npm' | |
| cache-dependency-path: Open-ILS/web/opac/deps/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci --ignore-scripts | |
| - name: Run tests | |
| run: npm run test |