Files
nowdatabase/.github/workflows/lint.yaml
T

37 lines
931 B
YAML

name: 'Lint'
on:
pull_request:
types: [opened, reopened, synchronize]
branches:
- '**'
jobs:
lint:
name: 'Lint & tsc'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: 'Install root dependencies'
run: npm run setup
- name: 'Run cypress linter'
run: npm run lint:cypress
- name: 'Run backend linter'
working-directory: 'backend'
run: npm run lint
- name: 'Run backend tsc'
working-directory: 'backend'
run: npx tsc --noEmit
- name: 'Install frontend dependencies'
working-directory: 'frontend'
run: npm ci
- name: 'Run frontend linter'
working-directory: 'frontend'
run: npm run lint
- name: 'Run frontend tsc'
working-directory: 'frontend'
run: npx tsc --noEmit