File tree Expand file tree Collapse file tree 6 files changed +41
-57
lines changed Expand file tree Collapse file tree 6 files changed +41
-57
lines changed Original file line number Diff line number Diff line change 1- name : " ci "
2-
1+ ---
2+ name : ci
33on :
44 pull_request :
5- branches :
6- - " main"
5+ branches : [main]
76 workflow_dispatch :
8-
97jobs :
108 Spec :
119 if : ${{ github.repository_owner == 'puppetlabs' }}
12- uses : " puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@main"
13- secrets : " inherit"
14-
10+ uses : puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@main
11+ secrets : inherit
1512 Acceptance :
1613 if : ${{ github.repository_owner == 'puppetlabs' }}
1714 needs : Spec
18- uses : " puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@main"
15+ uses : puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@main
1916 with :
2017 flags : --provision-service
21- secrets : " inherit"
18+ secrets : inherit
Original file line number Diff line number Diff line change 1- name : " nightly "
2-
1+ ---
2+ name : nightly
33on :
44 schedule :
5- - cron : " 0 0 * * *"
5+ - cron : 0 0 * * *
66 workflow_dispatch :
7-
87jobs :
98 Spec :
109 if : ${{ github.repository_owner == 'puppetlabs' }}
11- uses : " puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@main"
12- secrets : " inherit"
13-
10+ uses : puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@main
11+ secrets : inherit
1412 Acceptance :
1513 if : ${{ github.repository_owner == 'puppetlabs' }}
1614 needs : Spec
17- uses : " puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@main"
15+ uses : puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@main
1816 with :
1917 flags : --provision-service
20- secrets : " inherit"
18+ secrets : inherit
Original file line number Diff line number Diff line change 1- name : " Publish module "
2-
1+ ---
2+ name : Publish module
33on :
44 workflow_dispatch :
5-
65jobs :
7- release :
8- uses : " puppetlabs/cat-github-actions/.github/workflows/module_release.yml@main"
9- secrets : " inherit"
6+ release :
7+ uses : puppetlabs/cat-github-actions/.github/workflows/module_release.yml@main
8+ secrets : inherit
Original file line number Diff line number Diff line change 11---
2- require :
3- - rubocop-performance
4- - rubocop-rspec
2+ require : [rubocop-performance, rubocop-rspec]
53AllCops :
64 NewCops : enable
75 DisplayCopNames : true
86 TargetRubyVersion : ' 2.6'
9- Include :
10- - " **/*.rb"
7+ Include : ['**/*.rb']
118 Exclude :
12- - bin/*
13- - " .vendor/**/*"
14- - " **/Gemfile"
15- - " **/Rakefile"
16- - pkg/**/*
17- - spec/fixtures/**/*
18- - vendor/**/*
19- - " **/Puppetfile"
20- - " **/Vagrantfile"
21- - " **/Guardfile"
9+ - bin/*
10+ - .vendor/**/*
11+ - ' **/Gemfile'
12+ - ' **/Rakefile'
13+ - pkg/**/*
14+ - spec/fixtures/**/*
15+ - vendor/**/*
16+ - ' **/Puppetfile'
17+ - ' **/Vagrantfile'
18+ - ' **/Guardfile'
2219Layout/LineLength :
2320 Description : People have wide screens, use them.
2421 Max : 200
2522RSpec/BeforeAfterAll :
2623 Description : Beware of using after(:all) as it may cause state to leak between tests.
2724 A necessary evil in acceptance testing.
28- Exclude :
29- - spec/acceptance/**/*.rb
25+ Exclude : [spec/acceptance/**/*.rb]
3026RSpec/HookArgument :
3127 Description : Prefer explicit :each argument, matching existing module's style
3228 EnforcedStyle : each
3329RSpec/DescribeSymbol :
34- Exclude :
35- - spec/unit/facter/**/*.rb
30+ Exclude : [spec/unit/facter/**/*.rb]
3631Style/BlockDelimiters :
3732 Description : Prefer braces for chaining. Mostly an aesthetical choice. Better to
3833 be consistent then.
@@ -75,9 +70,7 @@ Style/SymbolArray:
7570RSpec/MessageSpies :
7671 EnforcedStyle : receive
7772Style/Documentation :
78- Exclude :
79- - lib/puppet/parser/functions/**/*
80- - spec/**/*
73+ Exclude : [lib/puppet/parser/functions/**/*, spec/**/*]
8174Style/WordArray :
8275 EnforcedStyle : brackets
8376Performance/AncestorsInclude :
Original file line number Diff line number Diff line change 11---
22Gemfile :
33 required :
4- ' :development ' :
4+ :development :
55 - gem : bolt
66 version : ' >= 3.10.0'
77 optional :
8- ' :development ' :
8+ :development :
99 - gem : github_changelog_generator
1010 version : 1.16.4 # Pinned to latest bug fix version
1111 - gem : octokit
1212 version : 4.21.0 # Locked due to https://github.com/octokit/octokit.rb/issues/1391
1313 # The Faraday requirements in orchestrator_client 0.7.1 causes Bundler to
1414 # resolve the dependency in unexpected ways and causes issues in CI
1515 - gem : orchestrator_client
16- version : ' < 0.7.1'
16+ version : < 0.7.1
1717Rakefile :
1818 changelog_since_tag : 2.5.0
1919 default_disabled_lint_checks :
@@ -23,7 +23,7 @@ Rakefile:
2323 - PuppetSyntax.exclude_paths = ["plans/**/*.pp", "spec/acceptance/**/plans/**/*.pp",
2424 " vendor/**/*" ]
2525spec/spec_helper.rb :
26- mock_with : ' :rspec'
26+ mock_with : :rspec
2727.gitignore :
2828 paths :
2929 - .rerun.json
Original file line number Diff line number Diff line change 1- # Use default_module_facts.yml for module specific facts.
2- #
3- # Facts specified here will override the values provided by rspec-puppet-facts.
41---
52networking :
6- ip : " 172.16.254.254"
7- ip6 : " FE80:0000:0000:0000:AAAA:AAAA:AAAA"
8- mac : " AA:AA:AA:AA:AA:AA"
3+ ip : 172.16.254.254
4+ ip6 : FE80:0000:0000:0000:AAAA:AAAA:AAAA
5+ mac : AA:AA:AA:AA:AA:AA
96is_pe : false
You can’t perform that action at this time.
0 commit comments