Files
trypear--pearai-app/.github/workflows/format-and-lint.yml
T
wehub-resource-sync fdedcf53bb
Basic checks / Compilation, Unit and Integration Tests (push) Has been cancelled
Basic checks / Hygiene and Layering (push) Has been cancelled
Basic checks / Warm up node modules cache (push) Has been cancelled
Check Format and Lint / lint-and-format (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:36:35 +08:00

38 lines
805 B
YAML

name: Check Format and Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint-and-format:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
- name: Install system dependencies
run: sudo apt-get install -y libkrb5-dev
- name: Install yarn
run: npm install -g yarn
- name: Install dependencies
run: yarn
- name: Run Prettier
run: yarn prettier --check './extensions/pearai-extension/**/src/**/*.{ts,tsx}'
- name: Run ESLint
run: yarn eslint './extensions/pearai-extension/**/src/**/*.{ts,tsx}' --quiet