mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 07:25:10 +00:00
The high-throughput sample used the deprecated Go SDK. This change updates the sample to use the currently supported Fabric Gateway client API and adds some automated testing to ensure the sample works correctly. Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
name: Test High Throughput
|
|
run-name: ${{ github.actor }} is running the High Throughput tests
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: ["main", "release-2.5"]
|
|
pull_request:
|
|
branches: ["main", "release-2.5"]
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
basic:
|
|
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up test network runtime
|
|
uses: ./.github/actions/test-network-setup
|
|
|
|
- name: Start Fabric
|
|
working-directory: high-throughput
|
|
run: ./startFabric.sh
|
|
|
|
- name: Test High Throughput
|
|
working-directory: high-throughput/application-go
|
|
run: |
|
|
go run . manyUpdates testvar1 100 +
|
|
go run . prune testvar1
|
|
go run . get testvar1
|
|
go run . update testvar2 100 +
|
|
go run . manyUpdatesTraditional testvar2 100 +
|
|
go run . delete testvar2
|
|
|
|
- name: Stop Fabric
|
|
working-directory: high-throughput
|
|
run: ./networkDown.sh
|