Bump es5-ext from 0.10.62 to 0.10.64 in /examples/supplychain-app/quorum/smartContracts #92
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################################## | |
# Copyright Accenture. All Rights Reserved. | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
############################################################################################## | |
name: Test Smartcontracts | |
on: | |
pull_request: | |
jobs: | |
validate_fabric: | |
if: contains(github.event.pull_request.title, 'Fabric') || contains(github.event.pull_request.title, 'fabric') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
wget -c https://dl.google.com/go/go1.14.2.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local | |
export GOROOT=/usr/local/go | |
export GOPATH=/opt/gopath | |
mkdir -p $GOPATH/bin | |
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH | |
curl https://raw.githubusercontent.com/hyperledger/bevel/main/platforms/hyperledger-fabric/scripts/install.sh | sh | |
- name: Test Stage all chaincodes. | |
run: | | |
# export the bin path | |
export PATH=~/bin:$PATH | |
export GOROOT=/usr/local/go | |
export GOPATH=/opt/gopath | |
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH | |
mkdir -p $GOPATH/src/github.com | |
ln -s $(pwd)/examples/supplychain-app/fabric/chaincode_rest_server/chaincode $GOPATH/src/github.com | |
cd $GOPATH/src/github.com/chaincode/supplychain | |
dep ensure | |
go test -v | |
########################################################################## | |
validate_quorum: | |
if: contains(github.event.pull_request.title, 'Quorum') || contains(github.event.pull_request.title, 'quorum') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update && sudo apt-get install npm | |
- name: Test smartcontracts using hardhat | |
run: | | |
cd examples/supplychain-app/quorum/smartContracts | |
npm install | |
npm test |