mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-22 17:45:10 +00:00
run test suites with 2.5 binaries and images (#906)
* run test suites with 2.5 binaries and images Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> * Swap to use the Helper Function to create policies (#907) The old way used the direct protobuf functions, there is a helper function in the chaincode does exactly that. Signed-off-by: Matthew B White <whitemat@uk.ibm.com> Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com> Signed-off-by: Matthew B White <whitemat@uk.ibm.com> Co-authored-by: Matthew B White <whitemat@uk.ibm.com>
This commit is contained in:
parent
0fe4d091d2
commit
124adb43f9
15 changed files with 38 additions and 28 deletions
13
.github/actions/test-network-setup/action.yaml
vendored
13
.github/actions/test-network-setup/action.yaml
vendored
|
|
@ -10,6 +10,12 @@ inputs:
|
||||||
java-version:
|
java-version:
|
||||||
description: Version of JDK
|
description: Version of JDK
|
||||||
default: 11.x
|
default: 11.x
|
||||||
|
fabric-version:
|
||||||
|
description: Version of Hyperledger Fabric
|
||||||
|
default: 2.5.0-alpha3
|
||||||
|
ca-version:
|
||||||
|
description: Version of Hyperledger Fabric CA
|
||||||
|
default: 1.5.6-beta3
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
|
|
@ -35,12 +41,15 @@ runs:
|
||||||
- name: Install fabric CLI
|
- name: Install fabric CLI
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/main/scripts/install-fabric.sh | bash -s -- binary
|
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/main/scripts/install-fabric.sh \
|
||||||
|
| bash -s -- binary --fabric-version ${{ inputs.fabric-version }} --ca-version ${{ inputs.ca-version }}
|
||||||
echo ${PWD}/bin >> $GITHUB_PATH
|
echo ${PWD}/bin >> $GITHUB_PATH
|
||||||
|
|
||||||
- name: Pull Fabric Docker Images
|
- name: Pull Fabric Docker Images
|
||||||
shell: bash
|
shell: bash
|
||||||
run: curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/main/scripts/install-fabric.sh | bash -s -- docker
|
run: |
|
||||||
|
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/main/scripts/install-fabric.sh \
|
||||||
|
| bash -s -- docker --fabric-version ${{ inputs.fabric-version }} --ca-version ${{ inputs.ca-version }}
|
||||||
|
|
||||||
- name: Install retry CLI
|
- name: Install retry CLI
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
||||||
4
.github/workflows/lint.yaml
vendored
4
.github/workflows/lint.yaml
vendored
|
|
@ -7,9 +7,9 @@ run-name: ${{ github.actor }} is linting fabric-samples 🎉
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "release-2.5" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "release-2.5" ]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GO_VER: 1.18.3
|
GO_VER: 1.18.3
|
||||||
|
|
|
||||||
4
.github/workflows/rest-sample.yaml
vendored
4
.github/workflows/rest-sample.yaml
vendored
|
|
@ -10,10 +10,10 @@ env:
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "release-2.5" ]
|
||||||
paths: [ "asset-transfer-basic/rest-api-typescript/**" ]
|
paths: [ "asset-transfer-basic/rest-api-typescript/**" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "release-2.5" ]
|
||||||
paths: [ "asset-transfer-basic/rest-api-typescript/**" ]
|
paths: [ "asset-transfer-basic/rest-api-typescript/**" ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
|
||||||
1
.github/workflows/test-fsat.yaml
vendored
1
.github/workflows/test-fsat.yaml
vendored
|
|
@ -6,6 +6,7 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- "main"
|
- "main"
|
||||||
|
- "release-2.5"
|
||||||
paths:
|
paths:
|
||||||
- "full-stack-asset-transfer-guide/**"
|
- "full-stack-asset-transfer-guide/**"
|
||||||
|
|
||||||
|
|
|
||||||
4
.github/workflows/test-network-basic.yaml
vendored
4
.github/workflows/test-network-basic.yaml
vendored
|
|
@ -7,9 +7,9 @@ run-name: ${{ github.actor }} is running the Test Network Basic tests 🔎
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "release-2.5" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "release-2.5" ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
basic:
|
basic:
|
||||||
|
|
|
||||||
4
.github/workflows/test-network-events.yaml
vendored
4
.github/workflows/test-network-events.yaml
vendored
|
|
@ -7,9 +7,9 @@ run-name: ${{ github.actor }} is running the Test Network Events tests 💡
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "release-2.5" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "release-2.5" ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
events:
|
events:
|
||||||
|
|
|
||||||
4
.github/workflows/test-network-gateway.yaml
vendored
4
.github/workflows/test-network-gateway.yaml
vendored
|
|
@ -7,9 +7,9 @@ run-name: ${{ github.actor }} is running the Test Network Gateway tests 🖥️
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "release-2.5" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "release-2.5" ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
gateway:
|
gateway:
|
||||||
|
|
|
||||||
4
.github/workflows/test-network-hsm.yaml
vendored
4
.github/workflows/test-network-hsm.yaml
vendored
|
|
@ -7,9 +7,9 @@ run-name: ${{ github.actor }} is running the Test Network HSM tests 🍏
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "release-2.5" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "release-2.5" ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
hsm:
|
hsm:
|
||||||
|
|
|
||||||
4
.github/workflows/test-network-k8s.yaml
vendored
4
.github/workflows/test-network-k8s.yaml
vendored
|
|
@ -7,9 +7,9 @@ run-name: ${{ github.actor }} is testing the Kubernetes Test Network 🍒
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "release-2.5" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "release-2.5" ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ccaas-java:
|
ccaas-java:
|
||||||
|
|
|
||||||
4
.github/workflows/test-network-ledger.yaml
vendored
4
.github/workflows/test-network-ledger.yaml
vendored
|
|
@ -7,9 +7,9 @@ run-name: ${{ github.actor }} is running the Test Network Ledger tests 🥑
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "release-2.5" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "release-2.5" ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
basic:
|
basic:
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@ run-name: ${{ github.actor }} is running the Test Network Off Chain tests 🍔
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "release-2.5" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "release-2.5" ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
off-chain:
|
off-chain:
|
||||||
|
|
|
||||||
4
.github/workflows/test-network-private.yaml
vendored
4
.github/workflows/test-network-private.yaml
vendored
|
|
@ -7,9 +7,9 @@ run-name: ${{ github.actor }} is running the Test Network Private tests 🔒
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "release-2.5" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "release-2.5" ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
4
.github/workflows/test-network-sbe.yaml
vendored
4
.github/workflows/test-network-sbe.yaml
vendored
|
|
@ -7,9 +7,9 @@ run-name: ${{ github.actor }} is running the Test Network SBE tests 🎵
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "release-2.5" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "release-2.5" ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
SBE:
|
SBE:
|
||||||
|
|
|
||||||
4
.github/workflows/test-network-secured.yaml
vendored
4
.github/workflows/test-network-secured.yaml
vendored
|
|
@ -7,9 +7,9 @@ run-name: ${{ github.actor }} is running the Test Network Secured tests 🔔
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "release-2.5" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "main", "release-2.5" ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
secured:
|
secured:
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,8 @@
|
||||||
"author": "Hyperledger",
|
"author": "Hyperledger",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"fabric-contract-api": "^2.0.0",
|
"fabric-contract-api": "^2.5.0",
|
||||||
"fabric-shim": "^2.0.0"
|
"fabric-shim": "^2.5.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/chai": "^4.2.11",
|
"@types/chai": "^4.2.11",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue