LP2034956: Check authtoken validity more frequently #73
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: 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: 18 | |
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 |