Skip to content

Commit fbcbfc0

Browse files
committed
add workflows for running tests
Signed-off-by: Utkarsh Srivastava <srivastavautkarsh8097@gmail.com>
1 parent 656c578 commit fbcbfc0

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/tests.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Releases cross platform binaries for nodejs-snowflake and publishes to NPM
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, windows-latest, macos-latest]
16+
node-version: [12.17.0, 14.16.0]
17+
runs-on: ${{ matrix.os }}
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v1
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
- name: Install Dependencies
25+
- run: npm ci
26+
27+
- name: Build NodeJS Snowflake
28+
- run: npm run build
29+
30+
- name: Run Tests
31+
- run: npm t

0 commit comments

Comments
 (0)