mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
39 lines
942 B
YAML
39 lines
942 B
YAML
name: 'Lint'
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, reopened]
|
|
push:
|
|
branches:
|
|
- '**'
|
|
paths-ignore:
|
|
- '**/*.md'
|
|
- '.github/workflows/build.yaml'
|
|
|
|
jobs:
|
|
lint:
|
|
name: 'Lint & tsc backend'
|
|
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 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
|