Skip to content

Fixes and updates (#61) #114

Fixes and updates (#61)

Fixes and updates (#61) #114

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Blockchain CI
env:
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- name: Setup and run tests using Node.js ${{ matrix.node-version }}
working-directory: ./blockchain
run: |
npm install
npm run test
npm run coverage