Skip to content

Commit

Permalink
Add tests prior to merging PR
Browse files Browse the repository at this point in the history
  • Loading branch information
orenyomtov authored Oct 16, 2023
1 parent c8b4c9a commit b9193a0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Node.js CI
name: Build

on:
push:
Expand All @@ -8,13 +8,11 @@ on:

jobs:
build:

runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v2
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/test.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Test

on:
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: '16.14.2'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm test
env:
FIREBLOCKS_API_KEY: ${{ secrets.FIREBLOCKS_API_KEY }}
FIREBLOCKS_API_PRIVATE_KEY_PATH: ${{ secrets.FIREBLOCKS_API_PRIVATE_KEY_PATH }}
FIREBLOCKS_API_BASE_URL: ${{ vars.FIREBLOCKS_API_BASE_URL }}
FIREBLOCKS_RPC_URL: ${{ vars.FIREBLOCKS_RPC_URL }}

0 comments on commit b9193a0

Please sign in to comment.