Skip to content

Commit 016a90c

Browse files
authored
ci: conditional CI v2 (#87)
1 parent a32095e commit 016a90c

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,21 @@ on:
88
- 'book/**'
99
- '.github/workflows/docs.yml'
1010
- '.github/workflows/mdbook-preview.yml'
11+
- '.github/workflows/test.yml'
12+
- '.github/workflows/rmw-zenoh-rs.yml'
13+
- '.github/workflows/semantic-pr.yml'
14+
- '.github/workflows/pr-draft-check.yml'
1115
pull_request:
1216
branches: [main]
1317
paths-ignore:
1418
- '**.md'
1519
- 'book/**'
1620
- '.github/workflows/docs.yml'
1721
- '.github/workflows/mdbook-preview.yml'
22+
- '.github/workflows/test.yml'
23+
- '.github/workflows/rmw-zenoh-rs.yml'
24+
- '.github/workflows/semantic-pr.yml'
25+
- '.github/workflows/pr-draft-check.yml'
1826

1927
jobs:
2028
formatting:

.github/workflows/rmw-zenoh-rs.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,26 @@ name: rmw_zenoh_rs Tests
33
on:
44
push:
55
branches: [main]
6+
paths-ignore:
7+
- '**.md'
8+
- 'book/**'
9+
- '.github/workflows/docs.yml'
10+
- '.github/workflows/mdbook-preview.yml'
11+
- '.github/workflows/ci.yml'
12+
- '.github/workflows/test.yml'
13+
- '.github/workflows/semantic-pr.yml'
14+
- '.github/workflows/pr-draft-check.yml'
615
pull_request:
716
branches: [main]
17+
paths-ignore:
18+
- '**.md'
19+
- 'book/**'
20+
- '.github/workflows/docs.yml'
21+
- '.github/workflows/mdbook-preview.yml'
22+
- '.github/workflows/ci.yml'
23+
- '.github/workflows/test.yml'
24+
- '.github/workflows/semantic-pr.yml'
25+
- '.github/workflows/pr-draft-check.yml'
826
workflow_dispatch:
927
inputs:
1028
test_filter:
@@ -16,6 +34,11 @@ jobs:
1634
rmw_zenoh_rs_test:
1735
name: rmw_zenoh_rs with ROS 2 Jazzy
1836
runs-on: ubuntu-latest
37+
# Skip for draft PRs to save CI time during development
38+
if: |
39+
github.event_name == 'push' ||
40+
github.event_name == 'workflow_dispatch' ||
41+
github.event.pull_request.draft == false
1942
container:
2043
image: rostooling/setup-ros-docker:ubuntu-noble-ros-jazzy-ros-base-latest
2144

.github/workflows/test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,23 @@ on:
66
paths-ignore:
77
- '**.md'
88
- 'book/**'
9+
- '.github/workflows/docs.yml'
10+
- '.github/workflows/mdbook-preview.yml'
11+
- '.github/workflows/ci.yml'
12+
- '.github/workflows/rmw-zenoh-rs.yml'
13+
- '.github/workflows/semantic-pr.yml'
14+
- '.github/workflows/pr-draft-check.yml'
915
pull_request:
1016
branches: [main]
1117
paths-ignore:
1218
- '**.md'
1319
- 'book/**'
20+
- '.github/workflows/docs.yml'
21+
- '.github/workflows/mdbook-preview.yml'
22+
- '.github/workflows/ci.yml'
23+
- '.github/workflows/rmw-zenoh-rs.yml'
24+
- '.github/workflows/semantic-pr.yml'
25+
- '.github/workflows/pr-draft-check.yml'
1426

1527
jobs:
1628
interop_test:

0 commit comments

Comments
 (0)