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

feat(ci): add CI workflow for ESLint checks and type checking

This commit is contained in:
2025-06-17 15:58:20 +07:00
parent d313c7edd1
commit 52b3d6f871
2 changed files with 34 additions and 1 deletions

32
.github/workflows/ci.yaml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: CI
on: [push, pull_request]
jobs:
lint:
name: ESLint Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: pnpm
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: latest
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run ESLint
run: pnpm run lint:check
- name: Type check
run: pnpm run type:check

View File

@@ -9,7 +9,8 @@
"preview": "vite preview",
"test:unit": "vitest",
"type:check": "vue-tsc --build",
"lint:check": "eslint ."
"lint:check": "eslint .",
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@robonen/stdlib": "^0.0.7",