Skip to content

fix: add type: module to frontend package.json for eslint ESM support #14

fix: add type: module to frontend package.json for eslint ESM support

fix: add type: module to frontend package.json for eslint ESM support #14

name: Run Frontend Tests
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- main
paths:
- 'quantara/frontend/**'
- 'devops/**'
pull_request:
branches:
- main
paths:
- 'quantara/frontend/**'
- 'devops/**'
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
defaults:
run:
working-directory: ./quantara/frontend
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
cache-dependency-path: quantara/frontend/yarn.lock
- name: Create .env file
run: cp .env.dev .env
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run tests
run: yarn test:run
- name: Run lint
run: yarn lint