mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
GHA: Use ubuntu-20.04 for local forks since local forks don't have access to fabric-ubuntu-20.04. Signed-off-by: David Enyeart <enyeart@us.ibm.com>
39 lines
1 KiB
YAML
39 lines
1 KiB
YAML
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
name: Test Network Gateway 🖥️
|
|
run-name: ${{ github.actor }} is running the Test Network Gateway 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:
|
|
gateway:
|
|
runs-on: ${{ github.repository == 'hyperledger/fabric-samples' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }}
|
|
strategy:
|
|
matrix:
|
|
chaincode-language:
|
|
- go
|
|
- javascript
|
|
- typescript
|
|
- java
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up the test network runtime
|
|
uses: ./.github/actions/test-network-setup
|
|
|
|
- name: Run Test
|
|
working-directory: test-network
|
|
env:
|
|
CHAINCODE_LANGUAGE: ${{ matrix.chaincode-language }}
|
|
run: ../ci/scripts/run-test-network-gateway.sh
|