aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/main.yml
blob: 0bd6d07731ece29e15436ef7de14e5b0e7e660a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Build and lint
on:
  push:
    branches:
      - main
jobs:
  build-lint:
    name: Build and Lint
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 21
          cache: 'yarn'
          cache-dependency-path: 'yarn.lock'
      - name: Install deps
        run: yarn install --frozen-lockfile
      - name: Lint
        run: yarn eslint .
      - name: Format
        run: yarn prettier . --check
      - name: Prisma
        working-directory: packages/db
        run: yarn prisma generate
      - name: Build web app
        working-directory: packages/web
        run: yarn run build