Skip to content

Commit 195d64e

Browse files
test suite triggers
1 parent 7087804 commit 195d64e

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
run:
2+
- packages/platform-test-suite/**
3+
- packages/dashmate/**
4+
- packages/dapi/**
5+
- packages/js-dash-sdk/**
6+
- packages/js-dapi-client/**
7+
- packages/wasm-dpp/**
8+
- packages/dapi-grpc/**
9+
- packages/js-grpc-common/**
10+
- packages/dash-spv/**
11+
- packages/wallet-lib/**
12+
# Rust core components that affect local network behavior
13+
- packages/rs-dpp/**
14+
- packages/rs-drive/**
15+
- packages/rs-drive-abci/**
16+
- packages/rs-dapi-client/**
17+
- packages/rs-platform-serialization/**
18+
- packages/rs-platform-serialization-derive/**
19+
- packages/rs-platform-value/**
20+
- packages/rs-platform-value-convertible/**
21+
- packages/rs-platform-version/**
22+
- packages/rs-platform-versioning/**
23+
# System contracts used by validations
24+
- packages/dashpay-contract/**
25+
- packages/masternode-reward-shares-contract/**
26+
- packages/dpns-contract/**
27+
- packages/withdrawals-contract/**
28+
- packages/token-history-contract/**
29+
- packages/wallet-utils-contract/**
30+
# Local network scripts and action
31+
- .github/actions/local-network/**
32+
- scripts/**

.github/workflows/tests.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
js-packages-direct: ${{ steps.filter-js-direct.outputs.changes }}
2929
rs-packages: ${{ steps.filter-rs.outputs.changes }}
3030
rs-packages-direct: ${{ steps.filter-rs-direct.outputs.changes }}
31+
test-suite: ${{ steps.filter-test-suite.outputs.run }}
3132
steps:
3233
- name: Checkout
3334
uses: actions/checkout@v4
@@ -54,6 +55,12 @@ jobs:
5455
with:
5556
filters: .github/package-filters/rs-packages-direct.yml
5657

58+
- name: Check if Test Suite should run
59+
id: filter-test-suite
60+
uses: dorny/paths-filter@v3
61+
with:
62+
filters: .github/package-filters/test-suite-triggers.yml
63+
5764
build-js:
5865
name: Build JS packages
5966
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || !github.event.pull_request.draft }}
@@ -208,7 +215,9 @@ jobs:
208215
needs:
209216
- build-js
210217
- build-images
218+
- changes
211219
secrets: inherit
220+
if: needs.changes.outputs.test-suite == 'true'
212221
strategy:
213222
fail-fast: false
214223
matrix:
@@ -237,5 +246,7 @@ jobs:
237246
needs:
238247
- build-js
239248
- build-images
249+
- changes
240250
secrets: inherit
251+
if: needs.changes.outputs.test-suite == 'true'
241252
uses: ./.github/workflows/tests-packges-functional.yml

0 commit comments

Comments
 (0)