Skip to content

Commit 87f0ed6

Browse files
committed
Add check pr action
1 parent 83d69da commit 87f0ed6

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/check-pr.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Check Pull Request
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
13+
- name: Install Node.js
14+
uses: actions/setup-node@v4
15+
with:
16+
node-version: 22
17+
cache: 'pnpm'
18+
registry-url: 'https://registry.npmjs.org'
19+
20+
- uses: pnpm/action-setup@v4
21+
name: Install pnpm
22+
with:
23+
version: 9
24+
run_install: false
25+
- run: pnpm i
26+
- run: |
27+
pnpm lint
28+
pnpm test

0 commit comments

Comments
 (0)