aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build.yml9
-rw-r--r--.github/workflows/test.yml6
2 files changed, 9 insertions, 6 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index be0f2f812c..605ba2b4c0 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,5 +1,12 @@
name: build
on:
+ push:
+ paths:
+ - '**.cmake'
+ - '**/CMakeLists.txt'
+ - '**/CMakePresets.json'
+ - 'cmake.*/**'
+ - '.github/**'
pull_request:
branches:
- 'master'
@@ -12,7 +19,7 @@ on:
- '.github/**'
concurrency:
- group: ${{ github.workflow }}-${{ github.head_ref }}
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.repository_owner == 'neovim' && github.sha || github.ref_name }}
cancel-in-progress: true
env:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index ec393c8d8b..23019428c8 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -1,9 +1,6 @@
name: test
on:
push:
- branches:
- - 'master'
- - 'release-[0-9]+.[0-9]+'
pull_request:
branches:
- 'master'
@@ -12,7 +9,7 @@ on:
- 'contrib/**'
concurrency:
- group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.repository_owner == 'neovim' && github.sha || github.ref_name }}
cancel-in-progress: true
env:
@@ -30,7 +27,6 @@ env:
jobs:
lint:
- if: (github.event_name == 'pull_request' && github.base_ref == 'master') || (github.event_name == 'push' && github.ref == 'refs/heads/master')
runs-on: ubuntu-22.04
timeout-minutes: 10
steps: