Skip to content

Commit 0d09541

Browse files
committed
ci(test): add test workflow
1 parent 6f31cf6 commit 0d09541

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/test.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
on:
2+
- push
3+
- pull_request
4+
5+
jobs:
6+
cache-and-install:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
13+
- uses: pnpm/action-setup@v4
14+
name: Install pnpm
15+
with:
16+
version: 8
17+
run_install: false
18+
19+
- name: Install Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 20
23+
cache: 'pnpm'
24+
25+
- name: Install dependencies
26+
run: pnpm install
27+
28+
- name: Run tests
29+
run: pnpm test

0 commit comments

Comments
 (0)