Skip to content

Bump browserify-sign from 4.2.1 to 4.2.2 in /client #46

Bump browserify-sign from 4.2.1 to 4.2.2 in /client

Bump browserify-sign from 4.2.1 to 4.2.2 in /client #46

Workflow file for this run

# 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: Node.js CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
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: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: |
./client/package-lock.json
./web3/package-lock.json
./server/package-lock.json
- run: npm install
working-directory: ./client
- run: npm run build --if-present
working-directory: ./client
- name: Run React Client Unit Test
run: npm run test
working-directory: ./client
- run: npm install
working-directory: ./web3
- name: Run Smart Contract Unit Test
env:
ALCHEMY_URL: ${{ secrets.ALCHEMY_URL }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
run: npx hardhat test
working-directory: ./web3
- run: npm install
working-directory: ./server
- name: Run Server Unit Test
run: npm run test
working-directory: ./server