-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add indy sdk to CI environment
Signed-off-by: Michal Bajer <[email protected]>
- Loading branch information
Showing
3 changed files
with
40 additions
and
5 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,17 @@ jobs: | |
nuclei-scan: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Install Indy SDK | ||
run: > | ||
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE7709D068DB5E88 \ | ||
&& sudo add-apt-repository "deb https://repo.sovrin.org/sdk/deb bionic stable" \ | ||
&& sudo apt-get update \ | ||
&& sudo apt-get install -y \ | ||
libindy \ | ||
libnullpay \ | ||
libvcx \ | ||
indy-cli | ||
- name: Set up NodeJS v16.9.1 | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -27,7 +38,7 @@ jobs: | |
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.17 | ||
|
||
- run: go install -v github.com/projectdiscovery/nuclei/v2/cmd/[email protected] | ||
|
||
- run: nuclei --version | ||
|
@@ -72,7 +83,7 @@ jobs: | |
|
||
- name: Install Fabric connector into the API server | ||
run: echo "$(jq '.plugins += [{"packageName":"@hyperledger/cactus-plugin-ledger-connector-fabric", "type":"org.hyperledger.cactus.plugin_import_type.LOCAL", "action":"org.hyperledger.cactus.plugin_import_action.INSTALL", "options":{"instanceId":"some-unique-fabric-connector-instance-id", "peerBinary":"/fabric-samples/bin/peer", "connectionProfile":"{}", "dockerBinary":"usr/local/bin/docker","cliContainerEnv":{"CORE_PEER_LOCALMSPID":"Org1MSP","CORE_PEER_ADDRESS":"peer0.org1.example.com:7051","CORE_PEER_MSPCONFIGPATH":"/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/[email protected]/msp","CORE_PEER_TLS_ROOTCERT_FILE":"/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt","ORDERER_TLS_ROOTCERT_FILE":"/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem"},"discoveryOptions":{"enabled":true,"asLocalhost":true}}}] ' .config.json)" > .config.json | ||
|
||
- name: Install Besu connector into the API server | ||
run: echo "$(jq '.plugins += [{"packageName":"@hyperledger/cactus-plugin-ledger-connector-besu","type":"org.hyperledger.cactus.plugin_import_type.LOCAL","action":"org.hyperledger.cactus.plugin_import_action.INSTALL","options":{"rpcApiHttpHost":"http://localhost:8545", "rpcApiWsHost":"ws://localhost:8546", "instanceId":"some-unique-besu-connector-instance-id"}}]' .config.json)" > .config.json | ||
|
||
|
@@ -91,7 +102,7 @@ jobs: | |
# && echo -e " project-name: \"${GITHUB_REPOSITORY#*/}\"" >> ~/nuclei-github-config.yaml \ | ||
# && echo -e " issue-label: \"Nuclei\"" >> ~/nuclei-github-config.yaml \ | ||
# && echo "githubconfig=-rc ~/nuclei-github-config.yaml" >> $GITHUB_ENV | ||
|
||
# shell: bash | ||
|
||
# - run: ls -alt | ||
|
@@ -102,7 +113,7 @@ jobs: | |
# Needed because the wait-on syntax otherwise keeps thinking that | ||
# there is a problem due to our self signed certificates on the | ||
# test instance of the API server | ||
NODE_TLS_REJECT_UNAUTHORIZED: 0 | ||
NODE_TLS_REJECT_UNAUTHORIZED: 0 | ||
with: | ||
build: yarn --version | ||
start: yarn start:api-server | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,18 @@ jobs: | |
with: | ||
swap-size-gb: 10 | ||
|
||
- name: Install Indy SDK | ||
if: steps.run_result.outputs.run_result != 'success' | ||
run: > | ||
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE7709D068DB5E88 \ | ||
&& sudo add-apt-repository "deb https://repo.sovrin.org/sdk/deb bionic stable" \ | ||
&& sudo apt-get update \ | ||
&& sudo apt-get install -y \ | ||
libindy \ | ||
libnullpay \ | ||
libvcx \ | ||
indy-cli | ||
- name: Use Node.js v14.19.1 | ||
if: steps.run_result.outputs.run_result != 'success' | ||
uses: actions/[email protected] | ||
|
@@ -92,6 +104,18 @@ jobs: | |
with: | ||
swap-size-gb: 10 | ||
|
||
- name: Install Indy SDK | ||
if: steps.run_result.outputs.run_result != 'success' | ||
run: > | ||
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE7709D068DB5E88 \ | ||
&& sudo add-apt-repository "deb https://repo.sovrin.org/sdk/deb bionic stable" \ | ||
&& sudo apt-get update \ | ||
&& sudo apt-get install -y \ | ||
libindy \ | ||
libnullpay \ | ||
libvcx \ | ||
indy-cli | ||
- name: Use Node.js v16.14.2 | ||
if: steps.run_result.outputs.run_result != 'success' | ||
uses: actions/[email protected] | ||
|