diff --git a/.github/workflows/node.js.yml b/.github/workflows/build.js.yml similarity index 80% rename from .github/workflows/node.js.yml rename to .github/workflows/build.js.yml index b19dec5..02112ca 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/build.js.yml @@ -1,4 +1,4 @@ -name: Node.js CI +name: Build on: push: @@ -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 diff --git a/.github/workflows/test.js.yml b/.github/workflows/test.js.yml new file mode 100644 index 0000000..a2d912d --- /dev/null +++ b/.github/workflows/test.js.yml @@ -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 }}