Skip to content

Bump golang.org/x/net from 0.17.0 to 0.23.0 in /examples/supplychain-app/fabric/chaincode_rest_server/chaincode-external #119

Bump golang.org/x/net from 0.17.0 to 0.23.0 in /examples/supplychain-app/fabric/chaincode_rest_server/chaincode-external

Bump golang.org/x/net from 0.17.0 to 0.23.0 in /examples/supplychain-app/fabric/chaincode_rest_server/chaincode-external #119

##############################################################################################
# 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