Skip to content

Commit 44fa1d7

Browse files
authored
Cancel prev runs for bench and nix (#2335)
* Cancel prev runs for bench and nix * Dont use skip-duplicate-actions for cancel others * Ignore format func-tests
1 parent 9fa6abe commit 44fa1d7

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.github/workflows/bench.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: Benchmark
22

3+
# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency.
4+
concurrency:
5+
group: ${{ github.head_ref }}-${{ github.workflow }}
6+
cancel-in-progress: true
7+
38
on:
49
pull_request:
510
branches:
@@ -14,7 +19,7 @@ jobs:
1419
- id: skip_check
1520
uses: fkirc/skip-duplicate-actions@v3.4.0
1621
with:
17-
cancel_others: true
22+
cancel_others: false
1823
paths_ignore: '["**/docs/**", "**.md", "**/LICENSE", ".circleci/**", "install/**", "**.nix", "**/test/**", "flake.lock", "**/README.md", "FUNDING.yml"]'
1924

2025
bench_init:

.github/workflows/nix.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: Nix
22

3+
# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency.
4+
concurrency:
5+
group: ${{ github.head_ref }}-${{ github.workflow }}
6+
cancel-in-progress: true
7+
38
on:
49
pull_request:
510
branches:
@@ -18,7 +23,7 @@ jobs:
1823
- id: skip_check
1924
uses: fkirc/skip-duplicate-actions@master
2025
with:
21-
cancel_others: true
26+
cancel_others: false
2227
paths_ignore: '["**/docs/**", "**.md", "**/LICENSE", ".circleci/**", "install/**", "**/README.md", "FUNDING.yml"]'
2328
- id: skip_check_no_nix
2429
uses: fkirc/skip-duplicate-actions@master

test/functional/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ main = defaultTestRunner
2828
, Deferred.tests
2929
, Definition.tests
3030
, Diagnostic.tests
31-
, Format.tests
31+
, ignoreInEnv [HostOS Windows, GhcVer GHC90] "Tests gets stuck in ci" $ Format.tests
3232
, FunctionalBadProject.tests
3333
, FunctionalCodeAction.tests
3434
, FunctionalLiquid.tests

0 commit comments

Comments
 (0)