1
0
mirror of https://github.com/robonen/lorem-blog.git synced 2026-03-20 02:44:39 +00:00

refactor(ci): reorganize CI workflow for improved clarity and consistency

This commit is contained in:
2025-06-17 15:59:41 +07:00
parent 52b3d6f871
commit 4212517227

View File

@@ -2,29 +2,34 @@ name: CI
on: [push, pull_request]
env:
NODE_VERSION: 22.x
jobs:
lint:
name: ESLint Check
code-quality:
name: Code quality checks
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: pnpm
- name: Setup pnpm
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: latest
run_install: false
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run ESLint
run: pnpm run lint:check