-
Notifications
You must be signed in to change notification settings - Fork 128
38 lines (32 loc) · 1012 Bytes
/
cctesttool-build.yml
File metadata and controls
38 lines (32 loc) · 1012 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: fabric-chaincode-integration
on:
workflow_dispatch:
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
defaults:
run:
working-directory: ./tools/chaincode-integration
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Build
run: |
npm ci
npm run build --if-present
- name: Test
run: |
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/main/scripts/install-fabric.sh | bash -s -- samples binary docker
npm test
env:
TEST_NETWORK_DIR: ${{ github.workspace }}/tools/chaincode-integration/fabric-samples/test-network
TEST_CHAINCODE_DIR: ${{ github.workspace }}/tools/chaincode-integration/resources/chaincode