From 683e1699bdbb61c3c3fe00a80b01d8df10de1463 Mon Sep 17 00:00:00 2001 From: ttytm Date: Mon, 25 Mar 2024 16:33:02 +0100 Subject: [PATCH 1/3] ci: add concurrency config --- .github/workflows/analyzer_tests.yml | 4 ++++ .github/workflows/build_ci.yml | 4 ++++ .github/workflows/install_ci.yml | 4 ++++ .github/workflows/test_tree_sitter_v.yml | 4 ++++ .github/workflows/vscode_extension_tests.yml | 4 ++++ 5 files changed, 20 insertions(+) diff --git a/.github/workflows/analyzer_tests.yml b/.github/workflows/analyzer_tests.yml index 9c5ea0f8..a3b02476 100644 --- a/.github/workflows/analyzer_tests.yml +++ b/.github/workflows/analyzer_tests.yml @@ -14,6 +14,10 @@ on: - 'editors/code/**' - '**/*.md' +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + jobs: test: strategy: diff --git a/.github/workflows/build_ci.yml b/.github/workflows/build_ci.yml index dfafaa20..08bdf7d4 100644 --- a/.github/workflows/build_ci.yml +++ b/.github/workflows/build_ci.yml @@ -20,6 +20,10 @@ on: - '**/test_*.v' - '**/*_test.v' +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/install_ci.yml b/.github/workflows/install_ci.yml index 63fa2fba..d5b1b10e 100644 --- a/.github/workflows/install_ci.yml +++ b/.github/workflows/install_ci.yml @@ -10,6 +10,10 @@ on: - '**/install.vsh' - 'install_ci.yml' +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + jobs: install: strategy: diff --git a/.github/workflows/test_tree_sitter_v.yml b/.github/workflows/test_tree_sitter_v.yml index 406dd28a..c258676e 100644 --- a/.github/workflows/test_tree_sitter_v.yml +++ b/.github/workflows/test_tree_sitter_v.yml @@ -10,6 +10,10 @@ on: - 'tree_sitter_v/**' - '**/test_tree_sitter_v.yml' +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + jobs: test: name: Test tree-sitter diff --git a/.github/workflows/vscode_extension_tests.yml b/.github/workflows/vscode_extension_tests.yml index d1c13f3d..1afefe43 100644 --- a/.github/workflows/vscode_extension_tests.yml +++ b/.github/workflows/vscode_extension_tests.yml @@ -10,6 +10,10 @@ on: - 'editors/code/**' - '**/vscode_extension_tests.yml' +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + jobs: test: strategy: From 9ae9c771323025de40999e7596ad04ede0965e94 Mon Sep 17 00:00:00 2001 From: ttytm Date: Mon, 25 Mar 2024 16:38:15 +0100 Subject: [PATCH 2/3] temp change to test workflow cancelation --- src/main.v | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.v b/src/main.v index 8b195347..4ba12dc2 100644 --- a/src/main.v +++ b/src/main.v @@ -15,6 +15,7 @@ import metadata // default_tcp_port is default TCP port that the analyzer uses to connect to the socket // when the --socket flag is passed at startup. +// // See also the `--port` flag to specify a custom port. const default_tcp_port = 5007 From 70c3b14268202b641e24bd16600343635ef25097 Mon Sep 17 00:00:00 2001 From: ttytm Date: Mon, 25 Mar 2024 16:38:42 +0100 Subject: [PATCH 3/3] Revert "temp change to test workflow cancelation" This reverts commit 9ae9c771323025de40999e7596ad04ede0965e94. --- src/main.v | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main.v b/src/main.v index 4ba12dc2..8b195347 100644 --- a/src/main.v +++ b/src/main.v @@ -15,7 +15,6 @@ import metadata // default_tcp_port is default TCP port that the analyzer uses to connect to the socket // when the --socket flag is passed at startup. -// // See also the `--port` flag to specify a custom port. const default_tcp_port = 5007