Skip to content

Commit 680d9f1

Browse files
committed
chore(ci): adjust ci checks
1 parent 01dd4c3 commit 680d9f1

4 files changed

Lines changed: 40 additions & 3 deletions

File tree

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @faranjit

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: 🧱 Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: 📦 Setup PNPM
16+
uses: pnpm/action-setup@v4
17+
with:
18+
version: 10
19+
20+
- name: 🧰 Setup Node
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 20
24+
cache: "pnpm"
25+
26+
- name: 📥 Install dependencies
27+
run: pnpm install --frozen-lockfile
28+
29+
- name: 🧪 Lint
30+
run: pnpm run lint
31+
32+
- name: 🧱 Build
33+
run: pnpm run build
34+
35+
- name: ✅ Test
36+
run: pnpm run test

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
"build": "tsc -p tsconfig.node.json && vite build",
3131
"clean": "rimraf dist",
3232
"preview": "vite preview",
33-
"test": "vitest run --reporter=dot",
33+
"test": "vitest run --coverage",
3434
"test:watch": "vitest",
35-
"lint": "eslint src --ext .ts,.tsx",
35+
"lint": "eslint . --max-warnings=0",
3636
"lint:fix": "eslint src --ext .ts,.tsx --fix",
3737
"format": "prettier --write .",
3838
"typecheck": "tsc -p tsconfig.json --noEmit"

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// <reference types="vitest" />
22

3-
import { defineConfig } from "vite";
43
import react from "@vitejs/plugin-react";
4+
import { defineConfig } from "vite";
55

66
export default defineConfig({
77
plugins: [react()],

0 commit comments

Comments
 (0)