Skip to content

frontend: linting

frontend: linting #92

Workflow file for this run

name: Linting Checks
on:
push:
branches: ["*"]
pull_request:
branches: ["*"]
workflow_dispatch:
jobs:
lint-frontend:
runs-on: ubuntu-latest
name: Lint Frontend
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref || github.ref_name }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Frontend format check
working-directory: frontend
run: npm ci && npm run lint
lint-backend:
runs-on: ubuntu-latest
name: Lint Backend
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref || github.ref_name }}
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 'latest'
- name: Install dependencies
working-directory: backend
run: bun install --dev
- name: Prettier format check
working-directory: backend
run: bun run lint