Skip to content

Commit

Permalink
Apply Yamlfix format changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindidrichsen authored and github-actions[bot] committed Feb 28, 2025
1 parent 075d946 commit 83bf28e
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 57 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
name: "ci"

---
name: ci
on:
pull_request:
branches:
- "main"
branches: [main]
workflow_dispatch:

jobs:
Spec:
if: ${{ github.repository_owner == 'puppetlabs' }}
uses: "puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@main"
secrets: "inherit"

uses: puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@main
secrets: inherit
Acceptance:
if: ${{ github.repository_owner == 'puppetlabs' }}
needs: Spec
uses: "puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@main"
uses: puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@main
with:
flags: --provision-service
secrets: "inherit"
secrets: inherit
16 changes: 7 additions & 9 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
name: "nightly"

---
name: nightly
on:
schedule:
- cron: "0 0 * * *"
- cron: 0 0 * * *
workflow_dispatch:

jobs:
Spec:
if: ${{ github.repository_owner == 'puppetlabs' }}
uses: "puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@main"
secrets: "inherit"

uses: puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@main
secrets: inherit
Acceptance:
if: ${{ github.repository_owner == 'puppetlabs' }}
needs: Spec
uses: "puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@main"
uses: puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@main
with:
flags: --provision-service
secrets: "inherit"
secrets: inherit
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: "Publish module"

---
name: Publish module
on:
workflow_dispatch:

jobs:
release:
uses: "puppetlabs/cat-github-actions/.github/workflows/module_release.yml@main"
secrets: "inherit"
release:
uses: puppetlabs/cat-github-actions/.github/workflows/module_release.yml@main
secrets: inherit
37 changes: 15 additions & 22 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,33 @@
---
require:
- rubocop-performance
- rubocop-rspec
require: [rubocop-performance, rubocop-rspec]
AllCops:
NewCops: enable
DisplayCopNames: true
TargetRubyVersion: '2.6'
Include:
- "**/*.rb"
Include: ['**/*.rb']
Exclude:
- bin/*
- ".vendor/**/*"
- "**/Gemfile"
- "**/Rakefile"
- pkg/**/*
- spec/fixtures/**/*
- vendor/**/*
- "**/Puppetfile"
- "**/Vagrantfile"
- "**/Guardfile"
- bin/*
- .vendor/**/*
- '**/Gemfile'
- '**/Rakefile'
- pkg/**/*
- spec/fixtures/**/*
- vendor/**/*
- '**/Puppetfile'
- '**/Vagrantfile'
- '**/Guardfile'
Layout/LineLength:
Description: People have wide screens, use them.
Max: 200
RSpec/BeforeAfterAll:
Description: Beware of using after(:all) as it may cause state to leak between tests.
A necessary evil in acceptance testing.
Exclude:
- spec/acceptance/**/*.rb
Exclude: [spec/acceptance/**/*.rb]
RSpec/HookArgument:
Description: Prefer explicit :each argument, matching existing module's style
EnforcedStyle: each
RSpec/DescribeSymbol:
Exclude:
- spec/unit/facter/**/*.rb
Exclude: [spec/unit/facter/**/*.rb]
Style/BlockDelimiters:
Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
be consistent then.
Expand Down Expand Up @@ -75,9 +70,7 @@ Style/SymbolArray:
RSpec/MessageSpies:
EnforcedStyle: receive
Style/Documentation:
Exclude:
- lib/puppet/parser/functions/**/*
- spec/**/*
Exclude: [lib/puppet/parser/functions/**/*, spec/**/*]
Style/WordArray:
EnforcedStyle: brackets
Performance/AncestorsInclude:
Expand Down
8 changes: 4 additions & 4 deletions .sync.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
Gemfile:
required:
':development':
:development:
- gem: bolt
version: '>= 3.10.0'
optional:
':development':
:development:
- gem: github_changelog_generator
version: 1.16.4 # Pinned to latest bug fix version
- gem: octokit
version: 4.21.0 # Locked due to https://github.com/octokit/octokit.rb/issues/1391
# The Faraday requirements in orchestrator_client 0.7.1 causes Bundler to
# resolve the dependency in unexpected ways and causes issues in CI
- gem: orchestrator_client
version: '< 0.7.1'
version: < 0.7.1
Rakefile:
changelog_since_tag: 2.5.0
default_disabled_lint_checks:
Expand All @@ -23,7 +23,7 @@ Rakefile:
- PuppetSyntax.exclude_paths = ["plans/**/*.pp", "spec/acceptance/**/plans/**/*.pp",
"vendor/**/*"]
spec/spec_helper.rb:
mock_with: ':rspec'
mock_with: :rspec
.gitignore:
paths:
- .rerun.json
Expand Down
9 changes: 3 additions & 6 deletions spec/default_facts.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# Use default_module_facts.yml for module specific facts.
#
# Facts specified here will override the values provided by rspec-puppet-facts.
---
networking:
ip: "172.16.254.254"
ip6: "FE80:0000:0000:0000:AAAA:AAAA:AAAA"
mac: "AA:AA:AA:AA:AA:AA"
ip: 172.16.254.254
ip6: FE80:0000:0000:0000:AAAA:AAAA:AAAA
mac: AA:AA:AA:AA:AA:AA
is_pe: false

0 comments on commit 83bf28e

Please sign in to comment.