Skip to content

Commit d84cf83

Browse files
committed
ci: cancel superseded runs, add job timeouts, skip docs-only pushes
- concurrency (cancel-in-progress) on the branch-push workflows ci.yml and maven.yml - timeout-minutes on every job in every workflow - paths-ignore for markdown/docs on the push trigger only; pull_request stays unfiltered
1 parent 872a40a commit d84cf83

6 files changed

Lines changed: 24 additions & 0 deletions

File tree

‎.github/workflows/api-tracker-java25.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ permissions:
1010
jobs:
1111
track-api:
1212
runs-on: ubuntu-latest
13+
timeout-minutes: 45
1314

1415
steps:
1516
- name: Checkout repository

‎.github/workflows/ci.yml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,20 @@ name: CI
33
on:
44
push:
55
branches: ["**"]
6+
paths-ignore:
7+
- '**/*.md'
8+
- 'docs/**'
69
pull_request:
710
branches: ["**"]
811

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
916
jobs:
1017
build:
1118
runs-on: ubuntu-latest
19+
timeout-minutes: 30
1220
steps:
1321
- name: Checkout
1422
uses: actions/checkout@v4
@@ -50,6 +58,7 @@ jobs:
5058
docker-build:
5159
name: Build Docker image (Java 25)
5260
runs-on: ubuntu-latest
61+
timeout-minutes: 20
5362
steps:
5463
- name: Checkout
5564
uses: actions/checkout@v4

‎.github/workflows/daily-api-tracker.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ permissions:
1313
jobs:
1414
track-api:
1515
runs-on: ubuntu-latest
16+
timeout-minutes: 45
1617

1718
steps:
1819
- name: Checkout repository

‎.github/workflows/maven.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,22 @@ name: Java CI with Maven
33
on:
44
push:
55
branches: [ "main" ]
6+
paths-ignore:
7+
- '**/*.md'
8+
- 'docs/**'
69
pull_request:
710
branches: [ "main" ]
811
types: [opened, synchronize, reopened]
912

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
1017
jobs:
1118
test-java21:
1219
name: Test Core Library (Java 21)
1320
runs-on: ubuntu-latest
21+
timeout-minutes: 20
1422

1523
steps:
1624
- uses: actions/checkout@v4
@@ -34,6 +42,7 @@ jobs:
3442
test-java25:
3543
name: Test with Tooling (Java 25)
3644
runs-on: ubuntu-latest
45+
timeout-minutes: 30
3746

3847
steps:
3948
- uses: actions/checkout@v4
@@ -57,6 +66,7 @@ jobs:
5766
docker-build:
5867
name: Build Docker image (Java 25)
5968
runs-on: ubuntu-latest
69+
timeout-minutes: 20
6070
needs: test-java25
6171

6272
steps:

‎.github/workflows/release-on-tag.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ concurrency:
1717
jobs:
1818
release:
1919
runs-on: ubuntu-latest
20+
timeout-minutes: 60
2021
steps:
2122
- name: Checkout
2223
uses: actions/checkout@v4
@@ -127,6 +128,7 @@ jobs:
127128
docker-publish:
128129
name: Publish Docker image to GHCR
129130
runs-on: ubuntu-latest
131+
timeout-minutes: 30
130132
needs: release
131133
steps:
132134
- name: Checkout

‎.github/workflows/secrets-self-check.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
jobs:
77
check:
88
runs-on: ubuntu-latest
9+
timeout-minutes: 10
910
steps:
1011
- name: Print SHA256 of Central creds and GPG secrets
1112
env:

0 commit comments

Comments
 (0)