aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/main.yml
blob: 44c238f4260f185f5cf33d6582f610d70523a1fd (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
29
30
31
32
33
34
35
36
name: Build and lint
on:
  push:
    branches:
      - main
jobs:
  build-lint:
    name: Build and Lint
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      # This is a workaround for: https://github.com/actions/setup-node/issues/899
      - name: Enable Corepack before setting up Node
        run: corepack enable
      - uses: actions/setup-node@v4
        with:
          node-version: 21
          cache: "yarn"
          cache-dependency-path: "yarn.lock"
      - name: Install deps
        run: yarn install --immutable
      - name: Lint
        run: yarn lint
      - name: Format
        run: yarn format:check
      - name: Prisma
        run: yarn prisma:generate
      - name: Build the workers package
        working-directory: packages/workers
        run: yarn typecheck
      - name: Build web app
        working-directory: packages/web
        run: yarn run build
      - name: Build the browser extension
        working-directory: packages/browser-extension
        run: yarn build