Skip to content

Enhance Code Consistency with Prettier Integration #3

Enhance Code Consistency with Prettier Integration

Enhance Code Consistency with Prettier Integration #3

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, synchronize, reopened]
workflow_dispatch:
jobs:
lint-and-build:
name: Lint and Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Run Prettier
run: pnpm exec prettier --check .
- name: Run ESLint
run: pnpm run lint
- name: Build project
run: pnpm run build