Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance CI with more Ruby/Puppet versions #85

Merged
merged 2 commits into from
Feb 9, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
28 changes: 21 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,31 @@ jobs:
strategy:
fail-fast: false
matrix:
include:
- ruby: "2.5"
ruby:
- "3.1"
- "3.0"
- "2.7"
- "2.6"
- "2.5"
puppet:
- "~> 7.0"
- "~> 6.29"
exclude:
- ruby: "2.6"
- ruby: "2.7"
- ruby: "3.0"
puppet: "~> 7.0"
- ruby: "2.5"
puppet: "~> 7.0"

- ruby: "3.1"
coverage: "yes"
puppet: "~> 6.29"
- ruby: "3.0"
puppet: "~> 6.29"

name: "Ruby ${{ matrix.ruby }} - Puppet ${{ matrix.puppet }}"
env:
COVERAGE: ${{ matrix.coverage }}
PUPPET_VERSION: ${{ matrix.puppet }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
Expand Down
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ group :coverage, optional: ENV['COVERAGE']!='yes' do
gem 'simplecov-console', :require => false
gem 'codecov', :require => false
end

# Override gemspec for CI matrix builds.
puppetversion = ENV['PUPPET_VERSION'] || '>= 6.29'
gem 'puppet', puppetversion, :require => false
bastelfreak marked this conversation as resolved.
Show resolved Hide resolved