denyeart is running the Test Network HSM tests π #554
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
# | |
# SPDX-License-Identifier: Apache-2.0 | |
# | |
name: Test Network HSM π | |
run-name: ${{ github.actor }} is running the Test Network HSM 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: | |
hsm: | |
runs-on: fabric-ubuntu-20.04 | |
strategy: | |
matrix: | |
chaincode-language: | |
- go | |
- javascript | |
- typescript | |
- java | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up the test network runtime | |
uses: ./.github/actions/test-network-setup | |
- name: Install SoftHSM | |
run: sudo apt install -y softhsm2 | |
- name: Set up SoftHSM | |
run: | | |
echo directories.tokendir = /tmp > $HOME/softhsm2.conf | |
export SOFTHSM2_CONF=$HOME/softhsm2.conf | |
softhsm2-util --init-token --slot 0 --label "ForFabric" --pin 98765432 --so-pin 1234 | |
- name: Run Test Network HSM | |
working-directory: test-network | |
env: | |
CHAINCODE_LANGUAGE: ${{ matrix.chaincode-language }} | |
run: ../ci/scripts/run-test-network-hsm.sh |