Skip to content

Commit 18a0f18

Browse files
Apply Yamlfix format changes.
1 parent 075d946 commit 18a0f18

File tree

6 files changed

+41
-57
lines changed

6 files changed

+41
-57
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
1-
name: "ci"
2-
1+
---
2+
name: ci
33
on:
44
pull_request:
5-
branches:
6-
- "main"
5+
branches: [main]
76
workflow_dispatch:
8-
97
jobs:
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

.github/workflows/nightly.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
1-
name: "nightly"
2-
1+
---
2+
name: nightly
33
on:
44
schedule:
5-
- cron: "0 0 * * *"
5+
- cron: 0 0 * * *
66
workflow_dispatch:
7-
87
jobs:
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

.github/workflows/release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
name: "Publish module"
2-
1+
---
2+
name: Publish module
33
on:
44
workflow_dispatch:
5-
65
jobs:
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

.rubocop.yml

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,33 @@
11
---
2-
require:
3-
- rubocop-performance
4-
- rubocop-rspec
2+
require: [rubocop-performance, rubocop-rspec]
53
AllCops:
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'
2219
Layout/LineLength:
2320
Description: People have wide screens, use them.
2421
Max: 200
2522
RSpec/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]
3026
RSpec/HookArgument:
3127
Description: Prefer explicit :each argument, matching existing module's style
3228
EnforcedStyle: each
3329
RSpec/DescribeSymbol:
34-
Exclude:
35-
- spec/unit/facter/**/*.rb
30+
Exclude: [spec/unit/facter/**/*.rb]
3631
Style/BlockDelimiters:
3732
Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
3833
be consistent then.
@@ -75,9 +70,7 @@ Style/SymbolArray:
7570
RSpec/MessageSpies:
7671
EnforcedStyle: receive
7772
Style/Documentation:
78-
Exclude:
79-
- lib/puppet/parser/functions/**/*
80-
- spec/**/*
73+
Exclude: [lib/puppet/parser/functions/**/*, spec/**/*]
8174
Style/WordArray:
8275
EnforcedStyle: brackets
8376
Performance/AncestorsInclude:

.sync.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
---
22
Gemfile:
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
1717
Rakefile:
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/**/*"]
2525
spec/spec_helper.rb:
26-
mock_with: ':rspec'
26+
mock_with: :rspec
2727
.gitignore:
2828
paths:
2929
- .rerun.json

spec/default_facts.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
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
---
52
networking:
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
96
is_pe: false

0 commit comments

Comments
 (0)