Skip to content

Commit b96b134

Browse files
authored
Merge pull request #8 from seeden/add-ci-workflow
Add CI workflow for PR checks
2 parents aa9db65 + d31ae5d commit b96b134

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
concurrency:
8+
group: ci-${{ github.head_ref }}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
check:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: pnpm/action-setup@v4
18+
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: '20'
22+
cache: 'pnpm'
23+
24+
- run: pnpm install --frozen-lockfile
25+
26+
- run: pnpm build
27+
28+
- run: pnpm test
29+
30+
- run: pnpm typecheck

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"private": true,
33
"version": "0.1.2",
4+
"packageManager": "pnpm@10.29.3",
45
"scripts": {
56
"build": "pnpm -r build",
67
"dev": "pnpm -r --parallel dev",

0 commit comments

Comments
 (0)