Skip to content

Commit ffeb69c

Browse files
authored
(PE-35908) Optimize the full CI test to only trigger on code (#360)
1 parent 7869d2f commit ffeb69c

File tree

4 files changed

+83
-2
lines changed

4 files changed

+83
-2
lines changed

.github/workflows/spec.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,26 @@ on:
55
- cron: '0 0 * * *'
66
workflow_dispatch:
77
pull_request:
8+
paths:
9+
- '.github/workflows/**/*'
10+
- 'spec/**/*'
11+
- 'lib/**/*'
12+
- 'tasks/**/*'
13+
- 'functions/**/*'
14+
- 'types/**/*'
15+
- 'plans/**/*'
16+
- 'hiera/**/*'
17+
- 'manifests/**/*'
18+
- 'templates/**/*'
19+
- 'files/**/*'
20+
- 'metadata.json'
21+
- 'Rakefile'
22+
- 'Gemfile'
23+
- 'provision.yaml'
24+
- '.rspec'
25+
- '.rubocop.yml'
26+
- '.puppet-lint.rc'
27+
- '.fixtures.yml'
828

929
jobs:
1030
setup_matrix:

.github/workflows/test-fips-install-matrix.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,26 @@ name: "Install fips test matrix"
33

44
on:
55
pull_request:
6+
paths:
7+
- '.github/workflows/**/*'
8+
- 'spec/**/*'
9+
- 'lib/**/*'
10+
- 'tasks/**/*'
11+
- 'functions/**/*'
12+
- 'types/**/*'
13+
- 'plans/**/*'
14+
- 'hiera/**/*'
15+
- 'manifests/**/*'
16+
- 'templates/**/*'
17+
- 'files/**/*'
18+
- 'metadata.json'
19+
- 'Rakefile'
20+
- 'Gemfile'
21+
- 'provision.yaml'
22+
- '.rspec'
23+
- '.rubocop.yml'
24+
- '.puppet-lint.rc'
25+
- '.fixtures.yml'
626
branches: [main]
727
types: [review_requested]
828
workflow_dispatch: {}
@@ -83,7 +103,7 @@ jobs:
83103
--modulepath spec/fixtures/modules \
84104
architecture=${{ matrix.architecture }} \
85105
version=${{ matrix.version }} \
86-
fips=${{ matrix.fips }}
106+
fips=${{ matrix.fips }}
87107
88108
- name: 'Tear down test cluster'
89109
if: ${{ always() }}

.github/workflows/test-install-matrix.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,26 @@ name: "Install test matrix"
33

44
on:
55
pull_request:
6+
paths:
7+
- '.github/workflows/**/*'
8+
- 'spec/**/*'
9+
- 'lib/**/*'
10+
- 'tasks/**/*'
11+
- 'functions/**/*'
12+
- 'types/**/*'
13+
- 'plans/**/*'
14+
- 'hiera/**/*'
15+
- 'manifests/**/*'
16+
- 'templates/**/*'
17+
- 'files/**/*'
18+
- 'metadata.json'
19+
- 'Rakefile'
20+
- 'Gemfile'
21+
- 'provision.yaml'
22+
- '.rspec'
23+
- '.rubocop.yml'
24+
- '.puppet-lint.rc'
25+
- '.fixtures.yml'
626
branches: [main]
727
types: [review_requested]
828
workflow_dispatch: {}

.github/workflows/test-upgrade-matrix.yaml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,27 @@ name: "Upgrade test matrix"
33

44
on:
55
pull_request:
6+
paths:
7+
- '.github/workflows/**/*'
8+
- 'spec/**/*'
9+
- 'lib/**/*'
10+
- 'tasks/**/*'
11+
- 'functions/**/*'
12+
- 'types/**/*'
13+
- 'plans/**/*'
14+
- 'hiera/**/*'
15+
- 'manifests/**/*'
16+
- 'templates/**/*'
17+
- 'files/**/*'
18+
- 'metadata.json'
19+
- 'Rakefile'
20+
- 'Gemfile'
21+
- 'provision.yaml'
22+
- '.rspec'
23+
- '.rubocop.yml'
24+
- '.puppet-lint.rc'
25+
- '.fixtures.yml'
26+
627
branches: [main]
728
types: [review_requested]
829
workflow_dispatch: {}
@@ -96,7 +117,7 @@ jobs:
96117
while [ -f "${HOME}/pause" ] ; do
97118
echo "${HOME}/pause present, sleeping for 60 seconds..."
98119
sleep 60
99-
done
120+
done
100121
echo "${HOME}/pause absent, continuing workflow."
101122
102123
- name: 'Upgrade PE on test cluster'

0 commit comments

Comments
 (0)