diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2022-01-21 11:11:01 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-01-21 18:58:40 +0100 |
| commit | b7d4d8a55d65d0ef3ea06252c6407f47240ab94a (patch) | |
| tree | b4276b245283e31e06d4e210d9e7ec8139197a17 /.github/workflows/tests.yml | |
| parent | ci: bump neovim and tree-sitter cli to latest version (diff) | |
| download | nvim-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.yml | 14 |
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: |
