-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update from voxpupuli modulesync_config
- Loading branch information
Showing
22 changed files
with
401 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# editorconfig.org | ||
|
||
# Managed by modulesync - DO NOT EDIT | ||
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/ | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
tab_width = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
# Managed by modulesync - DO NOT EDIT | ||
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/ | ||
|
||
name: CI | ||
|
||
"on": pull_request | ||
|
||
concurrency: | ||
group: ${{ github.ref_name }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
puppet: | ||
name: Puppet | ||
uses: voxpupuli/gha-puppet/.github/workflows/basic.yml@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
# yamllint disable rule:quoted-strings | ||
name: markdownlint | ||
|
||
"on": | ||
- push | ||
|
||
jobs: | ||
markdownlint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Run mdl | ||
uses: actionshub/markdownlint@main | ||
with: | ||
filesToIgnoreRegex: "REFERENCE.md|CHANGELOG.md" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: "Pull Request Labels" | ||
"on": | ||
pull_request: | ||
types: ["opened", "labeled", "unlabeled", "synchronize"] | ||
jobs: | ||
label: | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- uses: "mheap/github-action-required-labels@v3" | ||
with: | ||
mode: "exactly" | ||
count: 1 | ||
labels: "enhancement, bug, skip-changelog" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
# Managed by modulesync - DO NOT EDIT | ||
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/ | ||
|
||
name: Release | ||
|
||
"on": | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
uses: voxpupuli/gha-puppet/.github/workflows/release.yml@v2 | ||
with: | ||
allowed_owner: 'lsst-it' | ||
secrets: | ||
# Configure secrets here: | ||
# https://docs.github.com/en/actions/security-guides/encrypted-secrets | ||
username: ${{ secrets.PUPPET_FORGE_USERNAME }} | ||
api_key: ${{ secrets.PUPPET_FORGE_API_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
# yamllint disable rule:quoted-strings | ||
name: shellcheck | ||
|
||
"on": | ||
- push | ||
|
||
jobs: | ||
shellcheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Run ShellCheck | ||
uses: ludeeus/action-shellcheck@master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
# yamllint disable rule:quoted-strings | ||
name: yamllint | ||
|
||
"on": | ||
- push | ||
|
||
jobs: | ||
yamllint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Run yamllint | ||
uses: bewuethr/yamllint-action@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Managed by modulesync - DO NOT EDIT | ||
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/ | ||
|
||
/pkg/ | ||
/Gemfile.lock | ||
/Gemfile.local | ||
/vendor/ | ||
/.vendor/ | ||
/spec/fixtures/manifests/ | ||
/spec/fixtures/modules/ | ||
/.vagrant/ | ||
/.bundle/ | ||
/.ruby-version | ||
/coverage/ | ||
/log/ | ||
/.idea/ | ||
/.dependencies/ | ||
/.librarian/ | ||
/Puppetfile.lock | ||
*.iml | ||
.*.sw? | ||
/.yardoc/ | ||
/Guardfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# https://github.com/markdownlint/markdownlint/blob/master/docs/creating_styles.md | ||
# https://github.com/markdownlint/markdownlint/blob/master/docs/RULES.md | ||
all | ||
rule "MD013", :code_blocks => false | ||
exclude_rule "MD003" | ||
exclude_rule "MD013" | ||
exclude_rule "MD036" | ||
exclude_rule "MD034" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# a separate "style" file must be used to pass "parameters" to a rule | ||
# | ||
# https://github.com/markdownlint/markdownlint/blob/master/docs/configuration.md | ||
# https://github.com/markdownlint/markdownlint/blob/master/docs/RULES.md | ||
style ".mdl_style.rb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
# Managed by modulesync - DO NOT EDIT | ||
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/ | ||
|
||
modulesync_config_version: '7.1.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# Managed by modulesync - DO NOT EDIT | ||
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/ | ||
# | ||
# Hooks are only enabled if you take action. | ||
# | ||
# To enable the hooks run: | ||
# | ||
# ``` | ||
# bundle exec overcommit --install | ||
# # ensure .overcommit.yml does not harm to you and then | ||
# bundle exec overcommit --sign | ||
# ``` | ||
# | ||
# (it will manage the .git/hooks directory): | ||
# | ||
# Examples howto skip a test for a commit or push: | ||
# | ||
# ``` | ||
# SKIP=RuboCop git commit | ||
# SKIP=PuppetLint git commit | ||
# SKIP=RakeTask git push | ||
# ``` | ||
# | ||
# Don't invoke overcommit at all: | ||
# | ||
# ``` | ||
# OVERCOMMIT_DISABLE=1 git commit | ||
# ``` | ||
# | ||
# Read more about overcommit: https://github.com/brigade/overcommit | ||
# | ||
# To manage this config yourself in your module add | ||
# | ||
# ``` | ||
# .overcommit.yml: | ||
# unmanaged: true | ||
# ``` | ||
# | ||
# to your modules .sync.yml config | ||
--- | ||
PreCommit: | ||
RuboCop: | ||
enabled: true | ||
description: 'Runs rubocop on modified files only' | ||
command: ['bundle', 'exec', 'rubocop'] | ||
PuppetLint: | ||
enabled: true | ||
description: 'Runs puppet-lint on modified files only' | ||
command: ['bundle', 'exec', 'puppet-lint'] | ||
YamlSyntax: | ||
enabled: true | ||
JsonSyntax: | ||
enabled: true | ||
TrailingWhitespace: | ||
enabled: true | ||
|
||
PrePush: | ||
RakeTarget: | ||
enabled: true | ||
description: 'Run rake targets' | ||
targets: | ||
- 'validate' | ||
- 'test' | ||
- 'rubocop' | ||
command: ['bundle', 'exec', 'rake'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Managed by modulesync - DO NOT EDIT | ||
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/ | ||
|
||
/docs/ | ||
/pkg/ | ||
/Gemfile | ||
/Gemfile.lock | ||
/Gemfile.local | ||
/vendor/ | ||
/.vendor/ | ||
/spec/ | ||
/Rakefile | ||
/.vagrant/ | ||
/.bundle/ | ||
/.ruby-version | ||
/coverage/ | ||
/log/ | ||
/.idea/ | ||
/.dependencies/ | ||
/.github/ | ||
/.librarian/ | ||
/Puppetfile.lock | ||
*.iml | ||
/.editorconfig | ||
/.fixtures.yml | ||
/.gitignore | ||
/.msync.yml | ||
/.overcommit.yml | ||
/.pmtignore | ||
/.rspec | ||
/.rspec_parallel | ||
/.rubocop.yml | ||
/.sync.yml | ||
.*.sw? | ||
/.yardoc/ | ||
/.yardopts | ||
/Dockerfile | ||
/HISTORY.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--fail-on-warnings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Managed by modulesync - DO NOT EDIT | ||
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/ | ||
|
||
--format documentation | ||
--color |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Managed by modulesync - DO NOT EDIT | ||
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/ | ||
|
||
--format progress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
# Managed by modulesync - DO NOT EDIT | ||
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/ | ||
|
||
inherit_gem: | ||
voxpupuli-test: rubocop.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
extends: default | ||
|
||
rules: | ||
# 80 chars should be enough, but don't fail if a line is longer | ||
line-length: false | ||
indentation: | ||
spaces: consistent | ||
indent-sequences: consistent | ||
# do not obsess over comment formatting | ||
comments-indentation: false | ||
comments: | ||
require-starting-space: false | ||
|
||
ignore: | | ||
.rubocop.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Managed by modulesync - DO NOT EDIT | ||
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/ | ||
|
||
source ENV['GEM_SOURCE'] || 'https://rubygems.org' | ||
|
||
group :test do | ||
gem 'voxpupuli-test', '~> 7.0', :require => false | ||
gem 'coveralls', :require => false | ||
gem 'simplecov-console', :require => false | ||
gem 'puppet_metadata', '~> 3.5', :require => false | ||
gem 'puppet-lint-package_ensure-check', :require => false | ||
gem 'puppet-lint-resource_reference_syntax', :require => false | ||
gem 'puppet-lint-strict_indent-check', :require => false | ||
gem 'puppet-lint-unquoted_string-check', :require => false | ||
gem 'puppet-lint-variable_contains_upcase', :require => false | ||
end | ||
|
||
group :development do | ||
gem 'guard-rake', :require => false | ||
gem 'overcommit', '>= 0.39.1', :require => false | ||
end | ||
|
||
group :system_tests do | ||
gem 'voxpupuli-acceptance', '~> 2.2', :require => false | ||
end | ||
|
||
group :release do | ||
gem 'voxpupuli-release', '~> 3.0', :require => false | ||
end | ||
|
||
gem 'rake', :require => false | ||
gem 'facter', ENV['FACTER_GEM_VERSION'], :require => false, :groups => [:test] | ||
|
||
puppetversion = ENV['PUPPET_GEM_VERSION'] || '~> 7.24' | ||
gem 'puppet', puppetversion, :require => false, :groups => [:test] | ||
|
||
# vim: syntax=ruby |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Managed by modulesync - DO NOT EDIT | ||
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/ | ||
|
||
# Attempt to load voxpupuli-test (which pulls in puppetlabs_spec_helper), | ||
# otherwise attempt to load it directly. | ||
begin | ||
require 'voxpupuli/test/rake' | ||
rescue LoadError | ||
begin | ||
require 'puppetlabs_spec_helper/rake_tasks' | ||
rescue LoadError | ||
end | ||
end | ||
|
||
# load optional tasks for acceptance | ||
# only available if gem group releases is installed | ||
begin | ||
require 'voxpupuli/acceptance/rake' | ||
rescue LoadError | ||
end | ||
|
||
# load optional tasks for releases | ||
# only available if gem group releases is installed | ||
begin | ||
require 'voxpupuli/release/rake_tasks' | ||
rescue LoadError | ||
# voxpupuli-release not present | ||
else | ||
GCGConfig.user = 'lsst-it' | ||
GCGConfig.project = 'puppet-pi' | ||
end | ||
|
||
desc "Run main 'test' task and report merged results to coveralls" | ||
task test_with_coveralls: [:test] do | ||
if Dir.exist?(File.expand_path('../lib', __FILE__)) | ||
require 'coveralls/rake/task' | ||
Coveralls::RakeTask.new | ||
Rake::Task['coveralls:push'].invoke | ||
else | ||
puts 'Skipping reporting to coveralls. Module has no lib dir' | ||
end | ||
end | ||
|
||
# vim: syntax=ruby |
Oops, something went wrong.