Skip to content

Commit 0e606a2

Browse files
committed
workflow: add github actions config
1 parent d8d928c commit 0e606a2

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: 'ci'
2+
on:
3+
push:
4+
branches:
5+
- '**'
6+
pull_request:
7+
branches:
8+
- main
9+
jobs:
10+
test:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os:
15+
- ubuntu-latest
16+
- macos-latest
17+
- windows-latest
18+
node_version:
19+
- 12
20+
- 14
21+
- 16
22+
name: Node ${{ matrix.node_version }} on ${{ matrix.os }}
23+
steps:
24+
- uses: actions/checkout@v1
25+
- uses: pnpm/[email protected]
26+
with:
27+
version: 6
28+
- uses: actions/setup-node@v2
29+
with:
30+
node-version: ${{ matrix.node_version }}
31+
cache: 'pnpm'
32+
- run: pnpm install
33+
- run: pnpm test

0 commit comments

Comments
 (0)