Skip to content

Commit e19beb4

Browse files
committed
ci: Add path-based triggers to CI workflows
This should skip running tests for cases where it is not needed Fixes: #1753
1 parent d554343 commit e19beb4

File tree

4 files changed

+148
-0
lines changed

4 files changed

+148
-0
lines changed

.github/workflows/ci-contrib.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,33 @@ on:
55
push:
66
branches:
77
- main
8+
paths:
9+
- 'helpers/**'
10+
- 'propagator/**'
11+
- 'resources/**'
12+
- 'processor/**'
13+
- 'sampler/**'
14+
- '.github/workflows/ci-contrib.yml'
15+
- '.github/actions/**'
16+
- 'Gemfile'
17+
- 'Rakefile'
18+
- '.rubocop.yml'
19+
- 'gemspecs/**'
820
pull_request:
921
branches:
1022
- main
23+
paths:
24+
- 'helpers/**'
25+
- 'propagator/**'
26+
- 'resources/**'
27+
- 'processor/**'
28+
- 'sampler/**'
29+
- '.github/workflows/ci-contrib.yml'
30+
- '.github/actions/**'
31+
- 'Gemfile'
32+
- 'Rakefile'
33+
- '.rubocop.yml'
34+
- 'gemspecs/**'
1135
schedule:
1236
- cron: "0 0 * * *"
1337

.github/workflows/ci-instrumentation-with-services.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,49 @@ on:
55
push:
66
branches:
77
- main
8+
paths:
9+
- 'instrumentation/bunny/**'
10+
- 'instrumentation/dalli/**'
11+
- 'instrumentation/mongo/**'
12+
- 'instrumentation/mysql2/**'
13+
- 'instrumentation/pg/**'
14+
- 'instrumentation/que/**'
15+
- 'instrumentation/racecar/**'
16+
- 'instrumentation/rdkafka/**'
17+
- 'instrumentation/redis/**'
18+
- 'instrumentation/resque/**'
19+
- 'instrumentation/ruby_kafka/**'
20+
- 'instrumentation/sidekiq/**'
21+
- 'instrumentation/trilogy/**'
22+
- '.github/workflows/ci-instrumentation-with-services.yml'
23+
- '.github/actions/**'
24+
- 'Gemfile'
25+
- 'Rakefile'
26+
- '.rubocop.yml'
27+
- 'gemspecs/**'
828
pull_request:
929
branches:
1030
- main
31+
paths:
32+
- 'instrumentation/bunny/**'
33+
- 'instrumentation/dalli/**'
34+
- 'instrumentation/mongo/**'
35+
- 'instrumentation/mysql2/**'
36+
- 'instrumentation/pg/**'
37+
- 'instrumentation/que/**'
38+
- 'instrumentation/racecar/**'
39+
- 'instrumentation/rdkafka/**'
40+
- 'instrumentation/redis/**'
41+
- 'instrumentation/resque/**'
42+
- 'instrumentation/ruby_kafka/**'
43+
- 'instrumentation/sidekiq/**'
44+
- 'instrumentation/trilogy/**'
45+
- '.github/workflows/ci-instrumentation-with-services.yml'
46+
- '.github/actions/**'
47+
- 'Gemfile'
48+
- 'Rakefile'
49+
- '.rubocop.yml'
50+
- 'gemspecs/**'
1151
schedule:
1252
- cron: "0 0 * * *"
1353

.github/workflows/ci-instrumentation.yml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,91 @@ on:
55
push:
66
branches:
77
- main
8+
paths:
9+
- 'instrumentation/action_mailer/**'
10+
- 'instrumentation/action_pack/**'
11+
- 'instrumentation/action_view/**'
12+
- 'instrumentation/active_job/**'
13+
- 'instrumentation/active_model_serializers/**'
14+
- 'instrumentation/active_record/**'
15+
- 'instrumentation/active_storage/**'
16+
- 'instrumentation/active_support/**'
17+
- 'instrumentation/all/**'
18+
- 'instrumentation/aws_sdk/**'
19+
- 'instrumentation/aws_lambda/**'
20+
- 'instrumentation/base/**'
21+
- 'instrumentation/concurrent_ruby/**'
22+
- 'instrumentation/delayed_job/**'
23+
- 'instrumentation/ethon/**'
24+
- 'instrumentation/excon/**'
25+
- 'instrumentation/faraday/**'
26+
- 'instrumentation/grape/**'
27+
- 'instrumentation/graphql/**'
28+
- 'instrumentation/grpc/**'
29+
- 'instrumentation/gruf/**'
30+
- 'instrumentation/http/**'
31+
- 'instrumentation/http_client/**'
32+
- 'instrumentation/httpx/**'
33+
- 'instrumentation/koala/**'
34+
- 'instrumentation/lmdb/**'
35+
- 'instrumentation/logger/**'
36+
- 'instrumentation/net_http/**'
37+
- 'instrumentation/rack/**'
38+
- 'instrumentation/rails/**'
39+
- 'instrumentation/restclient/**'
40+
- 'instrumentation/rspec/**'
41+
- 'instrumentation/sinatra/**'
42+
- 'helpers/**'
43+
- '.github/workflows/ci-instrumentation.yml'
44+
- '.github/actions/**'
45+
- 'Gemfile'
46+
- 'Rakefile'
47+
- '.rubocop.yml'
48+
- 'gemspecs/**'
849
pull_request:
950
branches:
1051
- main
52+
paths:
53+
- 'instrumentation/action_mailer/**'
54+
- 'instrumentation/action_pack/**'
55+
- 'instrumentation/action_view/**'
56+
- 'instrumentation/active_job/**'
57+
- 'instrumentation/active_model_serializers/**'
58+
- 'instrumentation/active_record/**'
59+
- 'instrumentation/active_storage/**'
60+
- 'instrumentation/active_support/**'
61+
- 'instrumentation/all/**'
62+
- 'instrumentation/aws_sdk/**'
63+
- 'instrumentation/aws_lambda/**'
64+
- 'instrumentation/base/**'
65+
- 'instrumentation/concurrent_ruby/**'
66+
- 'instrumentation/delayed_job/**'
67+
- 'instrumentation/ethon/**'
68+
- 'instrumentation/excon/**'
69+
- 'instrumentation/faraday/**'
70+
- 'instrumentation/grape/**'
71+
- 'instrumentation/graphql/**'
72+
- 'instrumentation/grpc/**'
73+
- 'instrumentation/gruf/**'
74+
- 'instrumentation/http/**'
75+
- 'instrumentation/http_client/**'
76+
- 'instrumentation/httpx/**'
77+
- 'instrumentation/koala/**'
78+
- 'instrumentation/lmdb/**'
79+
- 'instrumentation/logger/**'
80+
- 'instrumentation/net_http/**'
81+
- 'instrumentation/rack/**'
82+
- 'instrumentation/rails/**'
83+
- 'instrumentation/restclient/**'
84+
- 'instrumentation/rspec/**'
85+
- 'instrumentation/sinatra/**'
86+
- 'helpers/**'
87+
- '.github/workflows/ci-instrumentation.yml'
88+
- '.github/actions/**'
89+
- 'Gemfile'
90+
- 'Rakefile'
91+
- '.rubocop.yml'
92+
- 'gemspecs/**'
1193
schedule:
1294
- cron: "0 0 * * *"
1395

.github/workflows/ci-markdownlint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Markdown Lint Check
22

33
on:
44
pull_request:
5+
paths:
6+
- '**/*.md'
57

68
permissions:
79
contents: read

0 commit comments

Comments
 (0)