mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
29 lines
681 B
YAML
29 lines
681 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@v5
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
cache: 'npm'
|
|
cache-dependency-path: |
|
|
package-lock.json
|
|
backend/package-lock.json
|
|
frontend/package-lock.json
|
|
- name: 'Install root dependencies'
|
|
run: npm run setup
|
|
- name: 'Run lint (root, backend, frontend, cypress)'
|
|
run: npm run lint
|
|
- name: 'Run tsc (backend & frontend)'
|
|
run: npm run tsc
|