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:
jkneubuh 2023-01-18 11:05:40 -05:00 committed by GitHub
parent 0fe4d091d2
commit 124adb43f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 38 additions and 28 deletions

View file

@ -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

View file

@ -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

View file

@ -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:

View file

@ -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/**"

View file

@ -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:

View file

@ -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:

View file

@ -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:

View file

@ -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:

View file

@ -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:

View file

@ -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:

View file

@ -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:

View file

@ -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:

View file

@ -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:

View file

@ -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:

View file

@ -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",