Add branches to daily action #117
Workflow file for this run
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
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 |