mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40:02 -04:00
ci: avoid duplicate CI runs
* run CI on push to master or synchronize PR * cancel in-progress workflows for updated PR
This commit is contained in:
parent
bf59e0a3fb
commit
b7d4d8a55d
2 changed files with 26 additions and 2 deletions
|
|
@ -1,6 +1,18 @@
|
||||||
name: Parser compilation and query file check
|
name: Parser compilation and query file check
|
||||||
|
|
||||||
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:
|
jobs:
|
||||||
check_compilation_unix_like:
|
check_compilation_unix_like:
|
||||||
|
|
|
||||||
14
.github/workflows/tests.yml
vendored
14
.github/workflows/tests.yml
vendored
|
|
@ -1,6 +1,18 @@
|
||||||
name: Tests
|
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:
|
jobs:
|
||||||
check_compilation_unix_like:
|
check_compilation_unix_like:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue