Skip to content

Commit b1a7d23

Browse files
committed
add workflow
1 parent 6db112b commit b1a7d23

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/test.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: test
2+
3+
on:
4+
push: main
5+
pull_request: main
6+
7+
jobs:
8+
test:
9+
name: test
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-node@v1
14+
with:
15+
node-version: 12
16+
- uses: actions/cache@v2
17+
id: pnpm-store
18+
with:
19+
path: ~/.pnpm-store/v3
20+
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
21+
restore-keys: |
22+
${{ runner.os }}-pnpm-
23+
- uses: pnpm/action-setup@v1.2.1
24+
with:
25+
version: 5
26+
- run: pnpm i --frozen-lockfile
27+
- run: pnpm ts
28+
- run: pnpm test
29+
- run: pnpm build

0 commit comments

Comments
 (0)