Skip to content

Commit 41437e8

Browse files
committed
TASK: Add test to ci
1 parent 1cbfc43 commit 41437e8

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+
2+
name: Build and test
3+
4+
on:
5+
workflow_dispatch:
6+
push:
7+
pull_request:
8+
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Install Node.js
16+
uses: actions/setup-node@v3
17+
with:
18+
registry-url: 'https://registry.npmjs.org/'
19+
node-version-file: '.nvmrc'
20+
cache: 'npm'
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Build
26+
run: npm run build
27+
28+
- name: Test
29+
run: npm run test

0 commit comments

Comments
 (0)