Skip to content

Commit f44fe07

Browse files
CoveMBericglau
andauthored
Add exclude compile tests (#615)
Co-authored-by: Eric Lau <[email protected]>
1 parent bebe010 commit f44fe07

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/test.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,20 @@ jobs:
5454
variant:
5555
- default
5656
- compile
57+
exclude:
58+
- package: solidity
59+
variant: compile
60+
- package: cairo
61+
variant: compile
62+
- package: stylus
63+
variant: compile
64+
5765

5866
runs-on: ubuntu-latest
5967
steps:
6068
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
69+
with:
70+
fetch-depth: 0
6171
- name: Set up environment
6272
uses: ./.github/actions/setup
6373

@@ -104,8 +114,15 @@ jobs:
104114
run: yarn test '**/*.test.ts' '!**/*.compile.test.ts'
105115
working-directory: packages/core/${{matrix.package}}
106116

107-
- name: Run tests
117+
- name: Get list of changed files
118+
id: filter
108119
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))
109126
env:
110127
RUSTFLAGS: ""
111128
run: |

0 commit comments

Comments
 (0)