Skip to content

Commit

Permalink
Execute integration tests based on changes (hyperledger-caliper#1421)
Browse files Browse the repository at this point in the history
* Execute integration tests based on changes

Signed-off-by: CaptainIRS <[email protected]>

* Trigger fabric tests

Signed-off-by: CaptainIRS <[email protected]>

* Trigger ethereum tests

Signed-off-by: CaptainIRS <[email protected]>

* Trigger fisco-bcos tests

Signed-off-by: CaptainIRS <[email protected]>

* Trigger through core changes

Signed-off-by: CaptainIRS <[email protected]>

* Make change that shouldn't trigger any integration tests

Signed-off-by: CaptainIRS <[email protected]>

* Address review comments

* Fix edge case with empty matrix

Signed-off-by: CaptainIRS <[email protected]>
  • Loading branch information
CaptainIRS authored Aug 1, 2022
1 parent acb518e commit e476ba7
Showing 1 changed file with 45 additions and 1 deletion.
46 changes: 45 additions & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,57 @@ env:
NPM_VERSION: 8.15.0

jobs:
changes:
name: Check for changes
runs-on: ubuntu-latest
outputs:
adaptor: ${{ steps.filter.outputs.changes }}
steps:
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
fabric:
- 'packages/caliper-cli/**'
- 'packages/caliper-core/**'
- 'packages/caliper-fabric/**'
- 'packages/caliper-publish/**'
- 'packages/caliper-tests-integration/fabric_tests/**'
ethereum:
- 'packages/caliper-cli/**'
- 'packages/caliper-core/**'
- 'packages/caliper-ethereum/**'
- 'packages/caliper-publish/**'
- 'packages/caliper-tests-integration/ethereum_tests/**'
besu:
- 'packages/caliper-cli/**'
- 'packages/caliper-core/**'
- 'packages/caliper-ethereum/**'
- 'packages/caliper-publish/**'
- 'packages/caliper-tests-integration/besu_tests/**'
fisco-bcos:
- 'packages/caliper-cli/**'
- 'packages/caliper-core/**'
- 'packages/caliper-fisco-bcos/**'
- 'packages/caliper-publish/**'
- 'packages/caliper-tests-integration/fisco-bcos_tests/**'
generator:
- 'packages/caliper-cli/**'
- 'packages/caliper-core/**'
- 'packages/caliper-fabric/**'
- 'packages/generator-caliper/**'
- 'packages/caliper-publish/**'
- 'packages/caliper-tests-integration/generator_tests/**'
integration-tests:
needs: changes
if: ${{ needs.changes.outputs.adaptor != '[]' && needs.changes.outputs.adaptor != '' }}
name: Integration Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
adaptor: [fabric, ethereum, besu, fisco-bcos, generator]
adaptor: ${{ fromJSON(needs.changes.outputs.adaptor) }}
node-version: [14.x, 16.x]
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit e476ba7

Please sign in to comment.