mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-25 11:05:10 +00:00
added js app to CI pipeline , and linting matrix
Signed-off-by: Sijo Cherian <sijo@ibm.com>
This commit is contained in:
parent
0ef10ae096
commit
51c22f4955
2 changed files with 16 additions and 4 deletions
|
|
@ -99,11 +99,15 @@ jobs:
|
||||||
Ledger-Chaincode-Go:
|
Ledger-Chaincode-Go:
|
||||||
DIRECTORY: asset-transfer-ledger-queries
|
DIRECTORY: asset-transfer-ledger-queries
|
||||||
LANGUAGE: go
|
LANGUAGE: go
|
||||||
TYPE: chaincode
|
TYPE: chaincode
|
||||||
Private-Chaincode-Go:
|
PrivateData-Chaincode-Go:
|
||||||
DIRECTORY: asset-transfer-private-data
|
DIRECTORY: asset-transfer-private-data
|
||||||
LANGUAGE: go
|
LANGUAGE: go
|
||||||
TYPE: chaincode
|
TYPE: chaincode
|
||||||
|
PrivateData-Application-Javascript:
|
||||||
|
DIRECTORY: asset-transfer-private-data
|
||||||
|
LANGUAGE: javascript
|
||||||
|
TYPE: application
|
||||||
Secured-Chaincode-Go:
|
Secured-Chaincode-Go:
|
||||||
DIRECTORY: asset-transfer-secured-agreement
|
DIRECTORY: asset-transfer-secured-agreement
|
||||||
LANGUAGE: go
|
LANGUAGE: go
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,16 @@ function print() {
|
||||||
print "Creating network"
|
print "Creating network"
|
||||||
./network.sh up createChannel -ca -s couchdb -i "${FABRIC_VERSION}"
|
./network.sh up createChannel -ca -s couchdb -i "${FABRIC_VERSION}"
|
||||||
|
|
||||||
print "Deploying ${CHAINCODE_NAME} chaincode"
|
print "Deploying private-data ${CHAINCODE_NAME} chaincode"
|
||||||
./network.sh deployCC -ccn "${CHAINCODE_NAME}" -ccv 1 -ccs 1 -ccl "${CHAINCODE_LANGUAGE}"
|
./network.sh deployCC -ccn "${CHAINCODE_NAME}" -ccv 1 -ccs 1 -ccl "${CHAINCODE_LANGUAGE}" -ccep "OR('Org1MSP.peer','Org2MSP.peer')" -cccg ../asset-transfer-private-data/chaincode-go/collections_config.json
|
||||||
|
|
||||||
|
# Run Javascript application
|
||||||
|
print "Initializing Javascript application"
|
||||||
|
pushd ../asset-transfer-private-data/application-javascript
|
||||||
|
npm install
|
||||||
|
print "Executing app.js"
|
||||||
|
node app.js
|
||||||
|
popd
|
||||||
|
|
||||||
print "Stopping network"
|
print "Stopping network"
|
||||||
./network.sh down
|
./network.sh down
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue