Skip to content

feat: Add check for expired user-token to every initial page-load #1803

feat: Add check for expired user-token to every initial page-load

feat: Add check for expired user-token to every initial page-load #1803

# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
name: 'Test Interface: Portal'
on:
workflow_dispatch:
pull_request:
paths:
- '.github/workflows/test_interface_portal.yml'
- 'interfaces/Portal/**'
env:
interfacePath: 'interfaces/Portal/'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js version
uses: actions/setup-node@v4
with:
node-version-file: '${{ env.interfacePath }}/.node-version'
cache: 'npm'
cache-dependency-path: '${{ env.interfacePath }}/package-lock.json'
- name: Install
working-directory: ${{ env.interfacePath }}
run: 'npm ci --omit=optional --no-fund --no-audit'
- name: Lint
working-directory: ${{ env.interfacePath }}
run: 'npm run lint'
- name: Test
working-directory: ${{ env.interfacePath }}
run: 'npm test'