Skip to content

Commit

Permalink
Merge pull request #75 from opus-codium/sync-with-voxpupuli
Browse files Browse the repository at this point in the history
Sync with VoxPupuli
  • Loading branch information
neomilium authored Sep 30, 2024
2 parents 54ead98 + e3eb816 commit 78c2a42
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 5 deletions.
5 changes: 5 additions & 0 deletions moduleroot/.github/labeler.yml.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
# Managed by modulesync - DO NOT EDIT
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/

modulesync:
- head-branch: ['modulesync']
skip-changelog:
- head-branch: ['^release-*', 'release']
5 changes: 3 additions & 2 deletions moduleroot/.github/workflows/ci.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

name: CI

# yamllint disable-line rule:truthy
on:
pull_request: {}
push:
Expand All @@ -20,9 +21,9 @@ jobs:
puppet:
name: Puppet
<%- if @configs['acceptance_tests'] && Dir[File.join(@metadata[:workdir], 'spec', 'acceptance', '**', '*_spec.rb')].any? -%>
uses: voxpupuli/gha-puppet/.github/workflows/beaker.yml@v2
uses: voxpupuli/gha-puppet/.github/workflows/beaker.yml@v3
<%- else -%>
uses: voxpupuli/gha-puppet/.github/workflows/basic.yml@v2
uses: voxpupuli/gha-puppet/.github/workflows/basic.yml@v3
<%- end -%>
<%- if @configs['with'] -%>
with:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
# Managed by modulesync - DO NOT EDIT
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/

name: "Pull Request Labeler"

# yamllint disable-line rule:truthy
on:
pull_request_target: {}

Expand Down
3 changes: 2 additions & 1 deletion moduleroot/.github/workflows/release.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

name: Release

# yamllint disable-line rule:truthy
on:
push:
tags:
Expand All @@ -12,7 +13,7 @@ on:
jobs:
release:
name: Release
uses: voxpupuli/gha-puppet/.github/workflows/release.yml@v2
uses: voxpupuli/gha-puppet/.github/workflows/release.yml@v3
with:
<%- if @configs['with'] -%>
<%- @configs['with'].each do |k,v| -%>
Expand Down
1 change: 1 addition & 0 deletions moduleroot/.pmtignore.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
/.github/
/.librarian/
/Puppetfile.lock
/Puppetfile
*.iml
/.editorconfig
/.fixtures.yml
Expand Down
3 changes: 3 additions & 0 deletions moduleroot/.puppet-lint.rc.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Managed by modulesync - DO NOT EDIT
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/

--fail-on-warnings
<% checks = @configs['disabled_lint_checks'] - @configs['enabled_lint_checks'] -%>
<% checks.each do |check| -%>
Expand Down
2 changes: 1 addition & 1 deletion moduleroot/Gemfile.erb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ end
gem 'rake', :require => false
gem 'facter', ENV['FACTER_GEM_VERSION'], :require => false, :groups => [:test]

puppetversion = ENV['PUPPET_GEM_VERSION'] || '<%= @configs['puppet_version'] %>'
puppetversion = ENV['PUPPET_GEM_VERSION'] || <%= @configs['puppet_version'].inspect %>
gem 'puppet', puppetversion, :require => false, :groups => [:test]

# vim: syntax=ruby
2 changes: 1 addition & 1 deletion moduleroot/spec/spec_helper.rb.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RSpec.configure do |c|
c.hiera_config = <%= @configs['hiera_config'] %>
<%- end -%>
<%- if @configs['mock_with'] -%>
c.mock_with = <%= @configs['mock_with'] %>
c.mock_with <%= @configs['mock_with'] %>
<%- end -%>
end
<%- if @configs['add_mocked_facts'] -%>
Expand Down

0 comments on commit 78c2a42

Please sign in to comment.