Skip to content

Commit a7912a1

Browse files
authored
Merge pull request #4940 from camilamacedo86/optmize-ci
🌱 (ci): only call lint sample and test-devcontainer checks when has changes in the specific directories checked
2 parents c9af7fa + b5b5840 commit a7912a1

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

.github/workflows/lint-sample.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,18 @@ name: Lint Samples
22

33
on:
44
push:
5-
paths-ignore:
6-
- '**/*.md'
5+
- 'testdata/**'
6+
- 'docs/book/src/cronjob-tutorial/testdata/project/**'
7+
- 'docs/book/src/getting-started/testdata/project/**'
8+
- 'docs/book/src/multiversion-tutorial/testdata/project/**'
9+
- '.github/workflows/lint-sample.yml'
710
pull_request:
8-
paths-ignore:
9-
- '**/*.md'
11+
paths:
12+
- 'testdata/**'
13+
- 'docs/book/src/cronjob-tutorial/testdata/project/**'
14+
- 'docs/book/src/getting-started/testdata/project/**'
15+
- 'docs/book/src/multiversion-tutorial/testdata/project/**'
16+
- '.github/workflows/lint-sample.yml'
1017

1118
jobs:
1219
lint-samples:

.github/workflows/test-devcontainer.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ name: Test DevContainer Image
22

33
on:
44
push:
5-
paths-ignore:
6-
- '**/*.md'
5+
- 'testdata/**'
6+
- '.github/workflows/test-devcontainer.yml'
77
pull_request:
8-
paths-ignore:
9-
- '**/*.md'
8+
paths:
9+
- 'testdata/**'
10+
- '.github/workflows/test-devcontainer.yml'
1011

1112
jobs:
1213
test-devcontainer:

0 commit comments

Comments
 (0)