Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

Lint & format

Lint & format #5356

Workflow file for this run

name: Lint & format
on:
pull_request:
branches: [master]
merge_group:
types: [checks_requested]
jobs:
lint_format:
name: 'Lint & format'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Cache dependencies
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn --frozen-lockfile --ignore-scripts
- name: Run linters
run: |
yarn --cwd frontend next lint
yarn --cwd cms lint
- name: Run prettier check
run: yarn pcheck