Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .fixtures.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
fixtures:
forge_modules:
"stdlib":
repo: "puppetlabs/stdlib"
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
env:
BUNDLE_WITHOUT: development:release
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
ruby-version: '3.3'
bundler-cache: true
- name: Validate syntax of all puppet files
run: bundle exec rake validate
Expand All @@ -26,7 +26,7 @@ jobs:
run: bundle exec rake lint
- name: Setup Test Matrix
id: get-outputs
run: bundle exec metadata2gha --pidfile-workaround false
run: bundle exec metadata2gha

unit:
needs: setup_matrix
Expand All @@ -40,7 +40,7 @@ jobs:
PUPPET_VERSION: "~> ${{ matrix.puppet }}.0"
name: Puppet ${{ matrix.puppet }} (Ruby ${{ matrix.ruby }})
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
Expand Down
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
spec/fixtures
!spec/fixtures/data/trocla.yaml
.bundle
.librarian
.tmp
*.lock
pkg/
vendor
/doc
/pkg
/vendor
.yardoc
6 changes: 2 additions & 4 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---
require: rubocop-rspec
AllCops:
NewCops: enable
SuggestExtensions: false
inherit_gem:
voxpupuli-test: rubocop.yml
19 changes: 8 additions & 11 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
source 'https://rubygems.org'

if ENV.key?('PUPPET_VERSION')
puppetversion = "~> #{ENV['PUPPET_VERSION']}"
else
puppetversion = ['>= 7.1.0']
end
puppetversion = ENV.key?('PUPPET_VERSION') ? ENV['PUPPET_VERSION'].to_s : ['>= 7.1.0']

gem 'rake'
gem 'puppet', puppetversion
gem 'trocla'

group :tests do
gem 'metadata-json-lint'
gem 'puppetlabs_spec_helper'
gem 'puppet-lint'
gem 'puppet_metadata'
gem 'puppet-syntax'
# This draws in rubocop and other useful gems for puppet tests
gem 'voxpupuli-test'
gem 'voxpupuli-test', '~> 14.0.0'
# Brings metadata2gha for CI
gem 'puppet_metadata', '< 7.0.0'
end

group :docs do
gem 'puppet-strings', '< 6.0.0'
end
Loading