From 42125172277c308985fe87ccc437e53d66325903 Mon Sep 17 00:00:00 2001 From: robonen Date: Tue, 17 Jun 2025 15:59:41 +0700 Subject: [PATCH] refactor(ci): reorganize CI workflow for improved clarity and consistency --- .github/workflows/ci.yaml | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7a86c59..9927813 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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