Skip to content

Commit 3aa52a4

Browse files
authored
Add 'test' github workflow (#10)
1 parent 9634e72 commit 3aa52a4

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/test.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Test
2+
3+
on:
4+
push: { branches: ["main"] }
5+
pull_request:
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
9+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
10+
11+
jobs:
12+
test:
13+
name: Test
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v2
19+
20+
- name: Set up Node.js
21+
uses: actions/setup-node@v3
22+
23+
- name: Install pnpm
24+
run: npm install -g pnpm
25+
26+
- name: Install dependencies
27+
run: pnpm install
28+
29+
- name: Test
30+
run: pnpm test

0 commit comments

Comments
 (0)