-
-
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.
- Loading branch information
0 parents
commit 04879bd
Showing
9 changed files
with
806 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,8 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: bundler | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "13:00" | ||
open-pull-requests-limit: 10 |
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,32 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
if: github.repository_owner == 'voxpupuli' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Ruby 3.0 | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.0' | ||
env: | ||
BUNDLE_WITHOUT: release | ||
- name: Build gem | ||
run: gem build *.gemspec | ||
- name: Publish gem to rubygems.org | ||
run: gem push *.gem | ||
env: | ||
GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_AUTH_TOKEN }}' | ||
- name: Setup GitHub packages access | ||
run: | | ||
mkdir -p ~/.gem | ||
echo ":github: Bearer ${{ secrets.GITHUB_TOKEN }}" >> ~/.gem/credentials | ||
chmod 0600 ~/.gem/credentials | ||
- name: Publish gem to GitHub packages | ||
run: gem push --key github --host https://rubygems.pkg.github.com/voxpupuli *.gem |
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,30 @@ | ||
name: Test | ||
|
||
on: | ||
- pull_request | ||
- push | ||
|
||
env: | ||
BUNDLE_WITHOUT: release | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- ruby: "2.4" | ||
- ruby: "2.5" | ||
- ruby: "2.6" | ||
- ruby: "2.7" | ||
- ruby: "3.0" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Ruby ${{ matrix.ruby }} | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
- name: Build the gem | ||
run: gem build *.gemspec |
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,3 @@ | ||
.vendor/ | ||
Gemfile.lock | ||
.bundle/ |
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,7 @@ | ||
source 'https://rubygems.org' | ||
|
||
gemspec | ||
|
||
group :release do | ||
gem 'github_changelog_generator', '>= 1.16.4', :require => false | ||
end |
Large diffs are not rendered by default.
Oops, something went wrong.
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,12 @@ | ||
# voxpupuli-puppet-lint-plugins gem | ||
|
||
[![License](https://img.shields.io/github/license/voxpupuli/voxpupuli-puppet-lint-plugins.svg)](https://github.com/voxpupuli/voxpupuli-puppet-lint-plugins/blob/master/LICENSE) | ||
[![Test](https://github.com/voxpupuli/voxpupuli-puppet-lint-plugins/actions/workflows/test.yml/badge.svg)](https://github.com/voxpupuli/voxpupuli-puppet-lint-plugins/actions/workflows/test.yml) | ||
[![Release](https://github.com/voxpupuli/voxpupuli-puppet-lint-plugins/actions/workflows/release.yml/badge.svg)](https://github.com/voxpupuli/voxpupuli-puppet-lint-plugins/actions/workflows/release.yml) | ||
[![RubyGem Version](https://img.shields.io/gem/v/voxpupuli-puppet-lint-plugins.svg)](https://rubygems.org/gems/voxpupuli-puppet-lint-plugins) | ||
[![RubyGem Downloads](https://img.shields.io/gem/dt/voxpupuli-puppet-lint-plugins.svg)](https://rubygems.org/gems/voxpupuli-puppet-lint-plugins) | ||
|
||
This is a tiny helper gem that pulls in various puppet-lint plugins that are | ||
used by [Vox Pupuli](http://voxpupuli.org/) modules. This was previously handled | ||
by the voxpupuli-test gem. We decoupled it to allow an easy integration into | ||
PDK-style modules. |
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,19 @@ | ||
require 'rspec/core/rake_task' | ||
|
||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
task :default => :spec | ||
|
||
begin | ||
require 'rubygems' | ||
require 'github_changelog_generator/task' | ||
rescue LoadError | ||
else | ||
GitHubChangelogGenerator::RakeTask.new :changelog do |config| | ||
config.exclude_labels = %w{duplicate question invalid wontfix wont-fix skip-changelog} | ||
config.user = 'voxpupuli' | ||
config.project = 'voxpupuli-puppet-lint-plugins' | ||
gem_version = Gem::Specification.load("#{config.project}.gemspec").version | ||
config.future_release = gem_version | ||
end | ||
end |
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,34 @@ | ||
# -*- encoding: utf-8 -*- | ||
|
||
Gem::Specification.new do |s| | ||
s.name = 'voxpupuli-puppet-lint-plugins' | ||
s.version = '1.0.0' | ||
s.authors = ['Vox Pupuli'] | ||
s.email = ['pmc@voxpupuli.org'] | ||
s.homepage = 'https://github.com/voxpupuli/voxpupuli-puppet-lint-plugins' | ||
s.summary = 'Helper Gem that pulls in all the puppet-lint plugins that Vox Pupuli uses' | ||
s.description = 'A package that depends on all the puppet-lint-* gems Vox Pupuli modules need and puppet-lint itself' | ||
s.licenses = 'AGPL-3' | ||
|
||
|
||
# some of the plugins claim to require Ruby 2.4.0 or newer | ||
s.required_ruby_version = '>= 2.4.0' | ||
|
||
# pull in puppet-lint 2.5.0; required for Ruby 3 support | ||
s.add_runtime_dependency 'puppet-lint', '>= 2.5.0' | ||
s.add_runtime_dependency 'puppet-lint-absolute_classname-check', '>= 2.0.0' | ||
s.add_runtime_dependency 'puppet-lint-anchor-check' | ||
s.add_runtime_dependency 'puppet-lint-classes_and_types_beginning_with_digits-check' | ||
s.add_runtime_dependency 'puppet-lint-leading_zero-check' | ||
s.add_runtime_dependency 'puppet-lint-legacy_facts-check' | ||
s.add_runtime_dependency 'puppet-lint-topscope-variable-check' | ||
s.add_runtime_dependency 'puppet-lint-trailing_comma-check' | ||
s.add_runtime_dependency 'puppet-lint-unquoted_string-check' | ||
s.add_runtime_dependency 'puppet-lint-variable_contains_upcase' | ||
s.add_runtime_dependency 'puppet-lint-version_comparison-check' | ||
s.add_runtime_dependency 'puppet-lint-resource_reference_syntax' | ||
s.add_runtime_dependency 'puppet-lint-manifest_whitespace-check' | ||
s.add_runtime_dependency 'puppet-lint-file_ensure-check' | ||
s.add_runtime_dependency 'puppet-lint-strict_indent-check' | ||
s.add_runtime_dependency 'puppet-lint-optional_default-check' | ||
end |