mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
Cancel existing workflows on subsequent PR push. Signed-off-by: David Enyeart <enyeart@us.ibm.com>
40 lines
949 B
YAML
40 lines
949 B
YAML
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
name: Test Network Events 💡
|
|
run-name: ${{ github.actor }} is running the Test Network Events tests 💡
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [ "main", "release-2.5" ]
|
|
pull_request:
|
|
branches: [ "main", "release-2.5" ]
|
|
|
|
concurrency:
|
|
group: ${{ github.head_ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
events:
|
|
runs-on: ubuntu-20.04
|
|
strategy:
|
|
matrix:
|
|
chaincode-language:
|
|
- javascript
|
|
- java
|
|
chaincode-name:
|
|
- events
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up the test network runtime
|
|
uses: ./.github/actions/test-network-setup
|
|
|
|
- name: Run Test
|
|
working-directory: test-network
|
|
run: ../ci/scripts/run-test-network-events.sh
|
|
env:
|
|
CHAINCODE_NAME: ${{ matrix.chaincode-name }}
|
|
CHAINCODE_LANGUAGE: ${{ matrix.chaincode-language }}
|