File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 4444 runs-on : ubuntu-latest
4545 timeout-minutes : 30
4646 steps :
47-
47+
4848 - name : Check out repository code
4949 uses : actions/checkout@v2
5050
@@ -176,16 +176,25 @@ jobs:
176176 - name : Check out repository code
177177 uses : actions/checkout@v2
178178
179+ - name : Install NVM
180+ run : |
181+ curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh
182+ export NVM_DIR="$HOME/.nvm"
183+ [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
184+ [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
185+
179186 - name : Test chaincode for Fabric 1.4.x
180187 run : |
181188 cd samples/chaincodes/chaincode-kv-node-1.4 && \
189+ nvm use && \
182190 npm install && \
183191 npm run build && \
184192 npm run test
185193
186194 - name : Test chaincode for Fabric 2.x
187195 run : |
188196 cd samples/chaincodes/chaincode-kv-node && \
197+ nvm use && \
189198 npm install && \
190199 npm run build && \
191200 npm run test
You can’t perform that action at this time.
0 commit comments