Skip to content

Commit 271da3e

Browse files
authored
chore: Don't run SVM tests if no SVM files are changed (#1133)
* chore: Dont run SVM tests if no SVM files are changes Signed-off-by: Faisal Usmani <[email protected]> * updated path Signed-off-by: Faisal Usmani <[email protected]> --------- Signed-off-by: Faisal Usmani <[email protected]>
1 parent 796807a commit 271da3e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/pr.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,16 @@ jobs:
144144
with:
145145
verify_version: 0.4.3
146146
node_version: ${{ env.NODE_VERSION }}
147+
- name: Check which paths changed
148+
uses: dorny/paths-filter@v3
149+
id: filter
150+
with:
151+
filters: |
152+
svm:
153+
- 'programs/**'
154+
- 'scripts/svm/**'
155+
- 'src/svm/**'
156+
- 'test/svm/**'
147157
- name: Download SVM artifacts
148158
uses: actions/download-artifact@v4
149159
with:
@@ -165,6 +175,7 @@ jobs:
165175
if: steps.verified-test-build-cache.outputs.cache-hit != 'true'
166176
run: tar -cf svm-verified-test-binaries.tar target/deploy
167177
- name: Test verified SVM build
178+
if: steps.filter.outputs.svm == 'true'
168179
run: anchor test --skip-build
169180
build-ts:
170181
name: Build TypeScript

0 commit comments

Comments
 (0)