manifold/.github/workflows/check.yml

34 lines
908 B
YAML
Raw Normal View History

name: Check PRs
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check:
name: Perform static analysis checks
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Prepare Node environment
uses: actions/setup-node@v3
with:
node-version: latest
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run Prettier
2022-05-21 19:53:24 +00:00
run: npx prettier --check .
- name: Run ESLint on web client
run: cd web && yarn lint
- name: Run Typescript checker on web client
run: tsc --pretty --project web/tsconfig.json --noEmit
- name: Run Typescript checker on cloud functions
run: tsc --pretty --project functions/tsconfig.json --noEmit