Use atomic.Pointer to prevent race condition in bccsp.Factory #68
Workflow file for this run
This file contains hidden or 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
| # SPDX-License-Identifier: Apache-2.0 | |
| name: Verify Build | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| pull_request: | |
| branches: | |
| - "**" | |
| workflow_dispatch: | |
| workflow_call: | |
| env: | |
| GOPATH: /opt/go | |
| PATH: /opt/go/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin | |
| GO_VER: 1.24.2 | |
| jobs: | |
| unit-tests: | |
| name: Unit Tests | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Install Go | |
| uses: actions/setup-go@v3 | |
| with: | |
| go-version: ${{ env.GO_VER }} | |
| - name: Checkout Fabric-Lib-Go Code | |
| uses: actions/checkout@v3 | |
| - name: Install SoftHSM | |
| run: scripts/setup_hsm.sh | |
| - name: Run Checks and Unit Tests | |
| run: make checks unit-tests GOTOOLS_BINDIR=${{ env.GOPATH }}/bin |