Skip to content

Commit 58c61b8

Browse files
bastelfreaksmortex
authored andcommitted
modulesync 4.2.0
1 parent 87bd251 commit 58c61b8

17 files changed

+85
-41
lines changed

.editorconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# editorconfig.org
22

3-
# MANAGED BY MODULESYNC
3+
# Managed by modulesync - DO NOT EDIT
4+
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
45

56
root = true
67

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ By participating in this project you agree to abide by its terms.
2525

2626
* Fork the repo.
2727
* Create a separate branch for your change.
28-
* We only take pull requests with passing tests, and documentation. [travis-ci](http://travis-ci.org) runs the tests for us. You can also execute them locally. This is explained [in a later section](#the-test-matrix).
28+
* We only take pull requests with passing tests, and documentation. [GitHub Actions](https://docs.github.com/en/actions) run the tests for us. You can also execute them locally. This is explained [in a later section](#the-test-matrix).
2929
* Checkout [our docs](https://voxpupuli.org/docs/reviewing_pr/) we use to review a module and the [official styleguide](https://puppet.com/docs/puppet/6.0/style_guide.html). They provide some guidance for new code that might help you before you submit a pull request.
3030
* Add a test for your change. Only refactoring and documentation changes require no new tests. If you are adding functionality or fixing a bug, please add a test.
3131
* Squash your commits down into logical components. Make sure to rebase against our current master.

.github/workflows/ci.yml

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
# Managed by modulesync - DO NOT EDIT
3+
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
4+
15
name: CI
26

37
on: pull_request
@@ -8,20 +12,19 @@ jobs:
812
runs-on: ubuntu-latest
913
timeout-minutes: 40
1014
outputs:
11-
beaker_setfiles: ${{ steps.get-outputs.outputs.beaker_setfiles }}
12-
puppet_major_versions: ${{ steps.get-outputs.outputs.puppet_major_versions }}
1315
puppet_unit_test_matrix: ${{ steps.get-outputs.outputs.puppet_unit_test_matrix }}
16+
github_action_test_matrix: ${{ steps.get-outputs.outputs.github_action_test_matrix }}
1417
env:
15-
BUNDLE_WITHOUT: development:release
18+
BUNDLE_WITHOUT: development:system_tests:release
1619
steps:
1720
- uses: actions/checkout@v2
1821
- name: Setup ruby
1922
uses: ruby/setup-ruby@v1
2023
with:
21-
ruby-version: '2.7'
24+
ruby-version: '3.0'
2225
bundler-cache: true
23-
- name: Run rake validate
24-
run: bundle exec rake validate
26+
- name: Run static validations
27+
run: bundle exec rake validate lint check
2528
- name: Run rake rubocop
2629
run: bundle exec rake rubocop
2730
- name: Setup Test Matrix
@@ -48,7 +51,7 @@ jobs:
4851
ruby-version: ${{ matrix.ruby }}
4952
bundler-cache: true
5053
- name: Run tests
51-
run: bundle exec rake
54+
run: bundle exec rake parallel_spec
5255

5356
acceptance:
5457
needs: setup_matrix
@@ -58,22 +61,26 @@ jobs:
5861
strategy:
5962
fail-fast: false
6063
matrix:
61-
setfile: ${{fromJson(needs.setup_matrix.outputs.beaker_setfiles)}}
62-
puppet: ${{fromJson(needs.setup_matrix.outputs.puppet_major_versions)}}
64+
include: ${{fromJson(needs.setup_matrix.outputs.github_action_test_matrix)}}
6365
name: ${{ matrix.puppet.name }} - ${{ matrix.setfile.name }}
6466
steps:
6567
- uses: actions/checkout@v2
6668
- name: Setup ruby
6769
uses: ruby/setup-ruby@v1
6870
with:
69-
ruby-version: '2.7'
71+
ruby-version: '3.0'
7072
bundler-cache: true
7173
- name: Run tests
7274
run: bundle exec rake beaker
7375
env:
74-
# Yes, this should be in modulesync, but for now, just work around weird test failures
75-
# caused by locale on CentOS 7 with Puppet 7
76-
LANG: en_US
77-
LC_ALL: en_US.UTF-8
7876
BEAKER_PUPPET_COLLECTION: ${{ matrix.puppet.collection }}
7977
BEAKER_setfile: ${{ matrix.setfile.value }}
78+
79+
tests:
80+
needs:
81+
- unit
82+
- acceptance
83+
runs-on: ubuntu-latest
84+
name: Test suite
85+
steps:
86+
- run: echo Test suite completed

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
# Managed by modulesync - DO NOT EDIT
3+
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
4+
15
name: Release
26

37
on:
@@ -12,6 +16,7 @@ jobs:
1216
deploy:
1317
name: 'deploy to forge'
1418
runs-on: ubuntu-latest
19+
if: github.repository_owner == 'voxpupuli'
1520
steps:
1621
- name: Checkout repository
1722
uses: actions/checkout@v2

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Managed by modulesync - DO NOT EDIT
2+
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
3+
14
pkg/
25
Gemfile.lock
36
Gemfile.local

.msync.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
---
2-
modulesync_config_version: '4.1.0'
2+
# Managed by modulesync - DO NOT EDIT
3+
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
4+
5+
modulesync_config_version: '4.2.0'

.overcommit.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Managed by https://github.com/voxpupuli/modulesync_configs
1+
# Managed by modulesync - DO NOT EDIT
2+
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
23
#
34
# Hooks are only enabled if you take action.
45
#

.pmtignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Managed by modulesync - DO NOT EDIT
2+
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
3+
14
docs/
25
pkg/
36
Gemfile

.rspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
# Managed by modulesync - DO NOT EDIT
2+
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
3+
14
--format documentation
25
--color

.rspec_parallel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
# Managed by modulesync - DO NOT EDIT
2+
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
3+
14
--format progress

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
---
2+
# Managed by modulesync - DO NOT EDIT
3+
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
4+
25
inherit_gem:
36
voxpupuli-test: rubocop.yml

.sync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
22
Gemfile:
33
optional:
4-
':test:':
4+
':test':
55
- gem: puppet-lint-param-docs

.yardopts

Lines changed: 0 additions & 2 deletions
This file was deleted.

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# MANAGED BY MODULESYNC
2+
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
3+
14
FROM ruby:2.7
25

36
WORKDIR /opt/puppet

Gemfile

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
# Managed by modulesync - DO NOT EDIT
2+
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
3+
14
source ENV['GEM_SOURCE'] || "https://rubygems.org"
25

36
group :test do
4-
gem 'voxpupuli-test', '~> 2.1', :require => false
5-
gem 'coveralls', :require => false
6-
gem 'simplecov-console', :require => false
7-
gem 'puppet-lint-param-docs', :require => false
7+
gem 'voxpupuli-test', '~> 2.5', :require => false
8+
gem 'coveralls', :require => false
9+
gem 'simplecov-console', :require => false
10+
gem 'puppet_metadata', '~> 1.0', :require => false
11+
gem 'puppet-lint-param-docs', :require => false
812
end
913

1014
group :development do
@@ -13,22 +17,19 @@ group :development do
1317
end
1418

1519
group :system_tests do
16-
gem 'puppet_metadata', '~> 0.3.0', :require => false
17-
gem 'voxpupuli-acceptance', :require => false
20+
gem 'voxpupuli-acceptance', '~> 1.0', :require => false
1821
end
1922

2023
group :release do
21-
gem 'github_changelog_generator', '>= 1.16.1', :require => false
22-
gem 'puppet-blacksmith', :require => false
23-
gem 'voxpupuli-release', :require => false
24+
gem 'github_changelog_generator', '>= 1.16.1', :require => false if RUBY_VERSION >= '2.5'
25+
gem 'voxpupuli-release', '>= 1.0.2', :require => false
2426
gem 'puppet-strings', '>= 2.2', :require => false
2527
end
2628

27-
gem 'puppetlabs_spec_helper', '~> 2.0', :require => false
2829
gem 'rake', :require => false
2930
gem 'facter', ENV['FACTER_GEM_VERSION'], :require => false, :groups => [:test]
3031

31-
puppetversion = ENV['PUPPET_VERSION'] || '~> 6.0'
32+
puppetversion = ENV['PUPPET_VERSION'] || '>= 6.0'
3233
gem 'puppet', puppetversion, :require => false, :groups => [:test]
3334

3435
# vim: syntax=ruby

Rakefile

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
1+
# Managed by modulesync - DO NOT EDIT
2+
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
3+
14
# Attempt to load voxupuli-test (which pulls in puppetlabs_spec_helper),
25
# otherwise attempt to load it directly.
36
begin
47
require 'voxpupuli/test/rake'
58
rescue LoadError
6-
require 'puppetlabs_spec_helper/rake_tasks'
9+
begin
10+
require 'puppetlabs_spec_helper/rake_tasks'
11+
rescue LoadError
12+
end
13+
end
14+
15+
# load optional tasks for acceptance
16+
# only available if gem group releases is installed
17+
begin
18+
require 'voxpupuli/acceptance/rake'
19+
rescue LoadError
720
end
821

922
# load optional tasks for releases
@@ -34,14 +47,12 @@ begin
3447
require 'github_changelog_generator/task'
3548
require 'puppet_blacksmith'
3649
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
37-
version = (Blacksmith::Modulefile.new).version
38-
config.future_release = "v#{version}" if version =~ /^\d+\.\d+.\d+$/
50+
metadata = Blacksmith::Modulefile.new
51+
config.future_release = "v#{metadata.version}" if metadata.version =~ /^\d+\.\d+.\d+$/
3952
config.header = "# Changelog\n\nAll notable changes to this project will be documented in this file.\nEach new release typically also includes the latest modulesync defaults.\nThese should not affect the functionality of the module."
4053
config.exclude_labels = %w{duplicate question invalid wontfix wont-fix modulesync skip-changelog}
4154
config.user = 'voxpupuli'
42-
metadata_json = File.join(File.dirname(__FILE__), 'metadata.json')
43-
metadata = JSON.load(File.read(metadata_json))
44-
config.project = metadata['name']
55+
config.project = metadata.metadata['name']
4556
end
4657

4758
# Workaround for https://github.com/github-changelog-generator/github-changelog-generator/issues/715

spec/spec_helper.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
# This file is managed via modulesync
2-
# https://github.com/voxpupuli/modulesync
3-
# https://github.com/voxpupuli/modulesync_config
1+
# Managed by modulesync - DO NOT EDIT
2+
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
43

54
# puppetlabs_spec_helper will set up coverage if the env variable is set.
65
# We want to do this if lib exists and it hasn't been explicitly set.

0 commit comments

Comments
 (0)