Skip to content

Commit 9d14b6b

Browse files
committed
add CI
1 parent 550e763 commit 9d14b6b

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
# cancel in-progress runs on new commits to same PR (gitub.event.number)
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
Tests:
16+
runs-on: ${{ matrix.os }}
17+
timeout-minutes: 30
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
node-version: [16]
22+
os: [ubuntu-latest]
23+
steps:
24+
- run: git config --global core.autocrlf false
25+
- uses: actions/checkout@v3
26+
- uses: pnpm/[email protected]
27+
- uses: actions/setup-node@v3
28+
with:
29+
node-version: ${{ matrix.node-version }}
30+
cache: pnpm
31+
- run: pnpm install --frozen-lockfile
32+
- run: pnpm test

0 commit comments

Comments
 (0)