Skip to content

Commit 3d23516

Browse files
committed
minor refactor: avoid slow tests for trivial changes (tweak for PRs)
1 parent 963cd39 commit 3d23516

4 files changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/groovy-build-coverage.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ permissions:
2222

2323
jobs:
2424
test:
25-
if: contains(github.event.head_commit.message, 'GROOVY-')
25+
if: >-
26+
contains(github.event.head_commit.message || '', 'GROOVY-') ||
27+
contains(github.event.pull_request.title || '', 'GROOVY-')
2628
strategy:
2729
fail-fast: false
2830
runs-on: ubuntu-latest

.github/workflows/groovy-build-performance.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ permissions:
2222

2323
jobs:
2424
test:
25-
if: contains(github.event.head_commit.message, 'GROOVY-')
25+
if: >-
26+
contains(github.event.head_commit.message || '', 'GROOVY-') ||
27+
contains(github.event.pull_request.title || '', 'GROOVY-')
2628
strategy:
2729
fail-fast: false
2830
runs-on: ubuntu-latest

.github/workflows/groovy-jmh-classic.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ permissions:
2222

2323
jobs:
2424
test:
25-
if: contains(github.event.head_commit.message, 'GROOVY-')
25+
if: >-
26+
contains(github.event.head_commit.message || '', 'GROOVY-') ||
27+
contains(github.event.pull_request.title || '', 'GROOVY-')
2628
strategy:
2729
fail-fast: false
2830
matrix:

.github/workflows/groovy-jmh.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ permissions:
2222

2323
jobs:
2424
test:
25-
if: contains(github.event.head_commit.message, 'GROOVY-')
25+
if: >-
26+
contains(github.event.head_commit.message || '', 'GROOVY-') ||
27+
contains(github.event.pull_request.title || '', 'GROOVY-')
2628
strategy:
2729
fail-fast: false
2830
matrix:

0 commit comments

Comments
 (0)