Skip to content
This repository was archived by the owner on Jul 17, 2025. It is now read-only.

Commit 94d15d0

Browse files
committed
feat: added ci/cd
1 parent b5aa27d commit 94d15d0

File tree

3 files changed

+58
-1
lines changed

3 files changed

+58
-1
lines changed

.github/workflows/format.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Check Format
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
format:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v3
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: "16"
23+
24+
- name: Install dependencies
25+
run: npm install --force
26+
27+
- name: Run Prettier check
28+
run: npm run format:check

.github/workflows/lint.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v3
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: "16"
23+
24+
- name: Install dependencies
25+
run: npm install --force
26+
27+
- name: Run ESLint
28+
run: npm run lint

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"start": "next start -p 9169",
88
"lint": "next lint",
99
"test": "tsx ./tests/test.ts",
10-
"format": "prettier --write 'src/**/*.{js,jsx,ts,tsx}'"
10+
"format": "prettier --write 'src/**/*.{js,jsx,ts,tsx}'",
11+
"format:check": "prettier --check 'src/**/*.{js,jsx,ts,tsx}'"
1112
},
1213
"dependencies": {
1314
"@radix-ui/react-slot": "^1.1.0",

0 commit comments

Comments
 (0)