Skip to content

Commit c7fd931

Browse files
jneiraberberman
andauthored
Ignore ghcide tests by paths (#1673)
Co-authored-by: Potato Hatsue <1793913507@qq.com>
1 parent 54afb31 commit c7fd931

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,18 @@ jobs:
1414
runs-on: ubuntu-latest
1515
outputs:
1616
should_skip: ${{ steps.skip_check.outputs.should_skip }}
17+
should_skip_ghcide: ${{ steps.skip_ghcide_check.outputs.should_skip }}
1718
steps:
1819
- id: skip_check
1920
uses: fkirc/skip-duplicate-actions@v3.4.0
2021
with:
2122
cancel_others: true
2223
paths_ignore: '["**/docs/**", "**.md", "**/LICENSE", ".circleci/**", "install/**", "nix/**"]'
24+
# If we only change ghcide downstream packages we have not test ghcide itself
25+
- id: skip_ghcide_check
26+
uses: fkirc/skip-duplicate-actions@v3.4.0
27+
with:
28+
paths_ignore: '["hls-test-utils/**", "plugins/**", "src/**", "exe/**", "test/**", "shake-bench/**"]'
2329

2430
test:
2531
needs: pre_job
@@ -115,7 +121,7 @@ jobs:
115121
# Retry it three times to workaround compiler segfaults in windows
116122
run: cabal build || cabal build || cabal build
117123

118-
- if: ${{ needs.pre_job.outputs.should_skip != 'true' && matrix.test }}
124+
- if: ${{ needs.pre_job.outputs.should_skip != 'true' && needs.pre_job.outputs.should_skip_ghcide != 'true' && matrix.test }}
119125
name: Test ghcide
120126
# run the tests without parallelism to avoid running out of memory
121127
run: cabal test ghcide --test-options="-j1 --rerun-update" || cabal test ghcide --test-options="-j1 --rerun" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test ghcide --test-options="-j1 --rerun"

0 commit comments

Comments
 (0)