File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -54,10 +54,20 @@ jobs:
54
54
variant :
55
55
- default
56
56
- compile
57
+ exclude :
58
+ - package : solidity
59
+ variant : compile
60
+ - package : cairo
61
+ variant : compile
62
+ - package : stylus
63
+ variant : compile
64
+
57
65
58
66
runs-on : ubuntu-latest
59
67
steps :
60
68
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
69
+ with :
70
+ fetch-depth : 0
61
71
- name : Set up environment
62
72
uses : ./.github/actions/setup
63
73
@@ -104,8 +114,15 @@ jobs:
104
114
run : yarn test '**/*.test.ts' '!**/*.compile.test.ts'
105
115
working-directory : packages/core/${{matrix.package}}
106
116
107
- - name : Run tests
117
+ - name : Get list of changed files
118
+ id : filter
108
119
if : matrix.variant == 'compile'
120
+ run : |
121
+ BASE=${{ github.event.pull_request.base.sha || github.event.before }}
122
+ echo "changes=$(git diff --name-only $BASE ${{ github.sha }} | tr '\n' ' ')" >> $GITHUB_OUTPUT
123
+
124
+ - name : Run tests
125
+ if : matrix.variant == 'compile' && contains(steps.filter.outputs.changes, format('packages/core/{0}/', matrix.package))
109
126
env :
110
127
RUSTFLAGS : " "
111
128
run : |
You can’t perform that action at this time.
0 commit comments