Skip to content

Commit

Permalink
Cancel prev runs for bench and nix (#2335)
Browse files Browse the repository at this point in the history
* Cancel prev runs for bench and nix

* Dont use skip-duplicate-actions for cancel others

* Ignore format func-tests
  • Loading branch information
jneira committed Nov 9, 2021
1 parent 9fa6abe commit 44fa1d7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/bench.yml
@@ -1,5 +1,10 @@
name: Benchmark

# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency.
concurrency:
group: ${{ github.head_ref }}-${{ github.workflow }}
cancel-in-progress: true

on:
pull_request:
branches:
Expand All @@ -14,7 +19,7 @@ jobs:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v3.4.0
with:
cancel_others: true
cancel_others: false
paths_ignore: '["**/docs/**", "**.md", "**/LICENSE", ".circleci/**", "install/**", "**.nix", "**/test/**", "flake.lock", "**/README.md", "FUNDING.yml"]'

bench_init:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/nix.yml
@@ -1,5 +1,10 @@
name: Nix

# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency.
concurrency:
group: ${{ github.head_ref }}-${{ github.workflow }}
cancel-in-progress: true

on:
pull_request:
branches:
Expand All @@ -18,7 +23,7 @@ jobs:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
cancel_others: true
cancel_others: false
paths_ignore: '["**/docs/**", "**.md", "**/LICENSE", ".circleci/**", "install/**", "**/README.md", "FUNDING.yml"]'
- id: skip_check_no_nix
uses: fkirc/skip-duplicate-actions@master
Expand Down
2 changes: 1 addition & 1 deletion test/functional/Main.hs
Expand Up @@ -28,7 +28,7 @@ main = defaultTestRunner
, Deferred.tests
, Definition.tests
, Diagnostic.tests
, Format.tests
, ignoreInEnv [HostOS Windows, GhcVer GHC90] "Tests gets stuck in ci" $ Format.tests
, FunctionalBadProject.tests
, FunctionalCodeAction.tests
, FunctionalLiquid.tests
Expand Down

0 comments on commit 44fa1d7

Please sign in to comment.