up go 1.22.3 #237
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
# Copyright the Hyperledger Fabric contributors. All rights reserved. | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
name: Verify Build | |
on: | |
push: | |
branches: ["**"] | |
pull_request: | |
branches: ["**"] | |
workflow_dispatch: | |
env: | |
GOPATH: /opt/go | |
PATH: /opt/go/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin | |
GO_VER: 1.22.3 | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
basic-checks: | |
name: Basic Checks | |
runs-on: ${{ github.repository == 'hyperledger/fabric' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }} | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout Fabric Code | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@v5 | |
name: Install Go | |
with: | |
go-version: ${{ env.GO_VER }} | |
- run: make basic-checks | |
name: Run Basic Checks | |
unit-tests: | |
name: Unit Tests | |
needs: basic-checks | |
runs-on: ${{ github.repository == 'hyperledger/fabric' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }} | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout Fabric Code | |
- uses: actions/setup-go@v5 | |
name: Install Go | |
with: | |
go-version: ${{ env.GO_VER }} | |
- run: ci/scripts/setup_hsm.sh | |
name: Install SoftHSM | |
- run: make unit-test | |
name: Run Unit Tests | |
integration-tests: | |
name: Integration Tests | |
needs: basic-checks | |
strategy: | |
fail-fast: false | |
matrix: | |
INTEGRATION_TEST_SUITE: ["raft","pvtdata","pvtdatapurge","ledger","lifecycle","e2e smartbft","discovery gossip devmode pluggable","gateway idemix pkcs11 configtx configtxlator","sbe nwo msp"] | |
runs-on: ${{ github.repository == 'hyperledger/fabric' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }} | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout Fabric Code | |
- uses: actions/setup-go@v5 | |
name: Install Go | |
with: | |
go-version: ${{ env.GO_VER }} | |
- run: ci/scripts/setup_hsm.sh | |
name: Install SoftHSM | |
- run: make integration-test INTEGRATION_TEST_SUITE="${{matrix.INTEGRATION_TEST_SUITE}}" | |
name: Run Integration Tests | |
pfi-tests1: | |
name: PFI Tests1 | |
needs: basic-checks | |
runs-on: ${{ github.repository == 'hyperledger/fabric' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }} | |
env: | |
GORACE: atexit_sleep_ms=0 | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout Fabric Code | |
- uses: actions/setup-go@v5 | |
name: Install Go | |
with: | |
go-version: ${{ env.GO_VER }} | |
- run: ci/scripts/setup_hsm.sh | |
name: Install SoftHSM | |
- run: env | |
name: PFI env | |
- run: go test -cover -race -failfast -tags '' github.com/hyperledger/fabric/core/handlers/auth/filter github.com/hyperledger/fabric/core/handlers/auth/plugin github.com/hyperledger/fabric/core/handlers/library -short -p 1 -timeout=20m | |
name: Run PFI Tests1 | |
pfi-tests2: | |
name: PFI Tests2 | |
needs: basic-checks | |
runs-on: ${{ github.repository == 'hyperledger/fabric' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }} | |
env: | |
GORACE: atexit_sleep_ms=0 | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout Fabric Code | |
- uses: actions/setup-go@v5 | |
name: Install Go | |
with: | |
go-version: ${{ env.GO_VER }} | |
- run: ci/scripts/setup_hsm.sh | |
name: Install SoftHSM | |
- run: env | |
name: PFI env | |
- run: go test -cover -race -failfast -tags '' github.com/hyperledger/fabric/core/handlers/decoration github.com/hyperledger/fabric/core/handlers/decoration/decorator github.com/hyperledger/fabric/core/handlers/library -short -p 1 -timeout=20m | |
name: Run PFI Tests2 | |
pfi-tests3: | |
name: PFI Tests3 | |
needs: basic-checks | |
runs-on: ${{ github.repository == 'hyperledger/fabric' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }} | |
env: | |
GORACE: atexit_sleep_ms=0 | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout Fabric Code | |
- uses: actions/setup-go@v5 | |
name: Install Go | |
with: | |
go-version: ${{ env.GO_VER }} | |
- run: ci/scripts/setup_hsm.sh | |
name: Install SoftHSM | |
- run: env | |
name: PFI env | |
- run: go test -cover -race -failfast -tags '' github.com/hyperledger/fabric/core/handlers/decoration/plugin github.com/hyperledger/fabric/core/handlers/endorsement/api github.com/hyperledger/fabric/core/handlers/library -short -p 1 -timeout=20m | |
name: Run PFI Tests3 |