linting.yml raw

   1  name: Code quality - linting and typechecking
   2  
   3  on:
   4    push:
   5      branches:
   6        - master
   7    pull_request:
   8      types: [opened, synchronize]
   9  
  10  jobs:
  11    linting:
  12      runs-on: ubuntu-22.04
  13      defaults:
  14        run:
  15          working-directory: ./frontend
  16  
  17      steps:
  18        - uses: actions/checkout@v3
  19        - uses: actions/setup-node@v3
  20          with:
  21            node-version: 22.x
  22            cache: "yarn"
  23            cache-dependency-path: frontend/yarn.lock
  24  
  25        - run: yarn install
  26        - run: yarn prepare:http
  27  
  28        - name: Linting
  29          run: yarn lint:js
  30  
  31        - name: Prettier
  32          run: yarn format
  33  
  34        - name: Typechecking
  35          run: yarn tsc:compile
  36