Skip to content

Fix/logger

Fix/logger #116

name: frontend tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
viewer-tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./viewer/
strategy:
matrix:
os: [ubuntu-latest]
node-version: [16.x]
steps:
- uses: actions/checkout@v4
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Create npmrc
run: |
echo "//registry.npmjs.org/:_authToken=" > .npmrc
echo "registry=https://registry.npmjs.org/" >> .npmrc
echo "always-auth=false" >> .npmrc
- name: Install Jest directly
run: |
npm install --no-package-lock [email protected] [email protected]
- name: Run tests
env:
NODE_AUTH_TOKEN: ""
run: npx jest --config jest.config.js --no-watchman