Skip to content

Add branches to daily action #117

Add branches to daily action

Add branches to daily action #117

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@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
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