aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/tests.yml
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-01-21 11:11:01 +0100
committerStephan Seitz <stephan.seitz@fau.de>2022-01-21 18:58:40 +0100
commitb7d4d8a55d65d0ef3ea06252c6407f47240ab94a (patch)
treeb4276b245283e31e06d4e210d9e7ec8139197a17 /.github/workflows/tests.yml
parentci: bump neovim and tree-sitter cli to latest version (diff)
downloadnvim-treesitter-b7d4d8a55d65d0ef3ea06252c6407f47240ab94a.tar
nvim-treesitter-b7d4d8a55d65d0ef3ea06252c6407f47240ab94a.tar.gz
nvim-treesitter-b7d4d8a55d65d0ef3ea06252c6407f47240ab94a.tar.bz2
nvim-treesitter-b7d4d8a55d65d0ef3ea06252c6407f47240ab94a.tar.lz
nvim-treesitter-b7d4d8a55d65d0ef3ea06252c6407f47240ab94a.tar.xz
nvim-treesitter-b7d4d8a55d65d0ef3ea06252c6407f47240ab94a.tar.zst
nvim-treesitter-b7d4d8a55d65d0ef3ea06252c6407f47240ab94a.zip
ci: avoid duplicate CI runs
* run CI on push to master or synchronize PR * cancel in-progress workflows for updated PR
Diffstat (limited to '.github/workflows/tests.yml')
-rw-r--r--.github/workflows/tests.yml14
1 files changed, 13 insertions, 1 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 74e78c884..0a19311d1 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -1,6 +1,18 @@
name: Tests
-on: [push, pull_request]
+on:
+ push:
+ branches:
+ - 'master'
+ pull_request:
+ types: [opened, synchronize, reopened, ready_for_review]
+ branches:
+ - 'master'
+
+# Cancel any in-progress CI runs for a PR if it is updated
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
+ cancel-in-progress: true
jobs:
check_compilation_unix_like: