Skip to content

Commit b9193a0

Browse files
authored
Add tests prior to merging PR
1 parent c8b4c9a commit b9193a0

2 files changed

Lines changed: 25 additions & 3 deletions

File tree

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Node.js CI
1+
name: Build
22

33
on:
44
push:
@@ -8,13 +8,11 @@ on:
88

99
jobs:
1010
build:
11-
1211
runs-on: ubuntu-latest
1312

1413
strategy:
1514
matrix:
1615
node-version: [12.x, 14.x, 16.14.2]
17-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
1816

1917
steps:
2018
- uses: actions/checkout@v2

.github/workflows/test.js.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
with:
13+
fetch-depth: 0
14+
- uses: actions/setup-node@v2
15+
with:
16+
node-version: '16.14.2'
17+
registry-url: 'https://registry.npmjs.org'
18+
- run: npm install
19+
- run: npm test
20+
env:
21+
FIREBLOCKS_API_KEY: ${{ secrets.FIREBLOCKS_API_KEY }}
22+
FIREBLOCKS_API_PRIVATE_KEY_PATH: ${{ secrets.FIREBLOCKS_API_PRIVATE_KEY_PATH }}
23+
FIREBLOCKS_API_BASE_URL: ${{ vars.FIREBLOCKS_API_BASE_URL }}
24+
FIREBLOCKS_RPC_URL: ${{ vars.FIREBLOCKS_RPC_URL }}

0 commit comments

Comments
 (0)