Skip to content

Commit 2a1fdd7

Browse files
committed
ci: add ci workflow
1 parent d5aeca9 commit 2a1fdd7

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- beta
7+
pull_request:
8+
branches:
9+
- beta
10+
11+
permissions: {}
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
15+
cancel-in-progress: ${{ github.event_name != 'push' }}
16+
17+
jobs:
18+
build:
19+
name: Build & Lint
20+
runs-on: ubuntu-latest
21+
timeout-minutes: 10
22+
23+
steps:
24+
- uses: actions/checkout@v5.0.0
25+
- uses: pnpm/action-setup@v4.2.0
26+
- uses: actions/setup-node@v6.0.0
27+
with:
28+
node-version: lts/*
29+
cache: 'pnpm'
30+
31+
- name: 📦 Install dependencies
32+
run: pnpm install
33+
34+
- name: 🔠 Lint project
35+
run: pnpm lint
36+
37+
- name: ✂️ Knip project
38+
run: pnpm lint:knip
39+
40+
- name: 🛠️ Build project
41+
run: pnpm build

0 commit comments

Comments
 (0)