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

Cleanup README/gemspec/GitHub actions #13

Merged
merged 1 commit into from
Jul 9, 2021
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
15 changes: 12 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,22 @@ jobs:
if: github.repository == 'voxpupuli/beaker-openstack'
steps:
- uses: actions/checkout@v2
- name: Install Ruby 2.7
- name: Install Ruby 3.0
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
ruby-version: '3.0'
env:
BUNDLE_WITHOUT: release
- name: Build gem
run: gem build *.gemspec
- name: Publish gem
- 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
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ jobs:
- "2.5"
- "2.6"
- "2.7"
name: Ruby ${{ matrix.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
env:
BUNDLE_WITHOUT: release
- name: Run tests
run: bundle exec rake test:spec
run: bundle exec rake spec
5 changes: 2 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ group :acceptance_testing do
gem "beaker", *location_for(ENV['BEAKER_VERSION'] || '~> 4.0')
end


if File.exists? "#{__FILE__}.local"
eval(File.read("#{__FILE__}.local"), binding)
group :release do
gem 'github_changelog_generator', :require => false
end
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# beaker-openstack

[![License](https://img.shields.io/github/license/voxpupuli/beaker-openstack.svg)](https://github.com/voxpupuli/beaker-openstack/blob/master/LICENSE)
[![Test](https://github.com/voxpupuli/beaker-openstack/actions/workflows/test.yml/badge.svg)](https://github.com/voxpupuli/beaker-openstack/actions/workflows/test.yml)
[![Release](https://github.com/voxpupuli/beaker-openstack/actions/workflows/release.yml/badge.svg)](https://github.com/voxpupuli/beaker-openstack/actions/workflows/release.yml)
[![RubyGem Version](https://img.shields.io/gem/v/beaker-openstack.svg)](https://rubygems.org/gems/beaker-openstack)
[![RubyGem Downloads](https://img.shields.io/gem/dt/beaker-openstack.svg)](https://rubygems.org/gems/beaker-openstack)
[![Donated by Puppet Inc](https://img.shields.io/badge/donated%20by-Puppet%20Inc-fb7047.svg)](#transfer-notice)

Beaker library to use openstack hypervisor

# How to use this wizardry
Expand Down
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ task 'test:acceptance' => 'test:acceptance:quick'
# global defaults
task :test => 'test:spec'
task :default => :test
task :spec => 'test:spec'

###########################################################
#
Expand Down
15 changes: 5 additions & 10 deletions beaker-openstack.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ require 'beaker-openstack/version'
Gem::Specification.new do |s|
s.name = "beaker-openstack"
s.version = BeakerOpenstack::VERSION
s.authors = ["Rishi Javia, Kevin Imber, Tony Vu"]
s.email = ["rishi.javia@puppet.com, kevin.imber@puppet.com, tony.vu@puppet.com"]
s.homepage = "https://github.com/puppetlabs/beaker-openstack"
s.authors = 'Vox Pupuli'
s.email = 'voxpupuli@groups.io'
s.homepage = 'https://github.com/voxpupuli/beaker-openstack'
s.summary = %q{Beaker DSL Extension Helpers!}
s.description = %q{For use for the Beaker acceptance testing tool}
s.license = 'Apache2'
Expand All @@ -20,13 +20,8 @@ Gem::Specification.new do |s|
# Testing dependencies
s.add_development_dependency 'rspec', '~> 3.0'
s.add_development_dependency 'rspec-its'
# pin fakefs for Ruby < 2.3
if RUBY_VERSION < "2.3"
s.add_development_dependency 'fakefs', '~> 0.6', '< 0.14'
else
s.add_development_dependency 'fakefs', '~> 0.6'
end
s.add_development_dependency 'rake', '~> 10.1'
s.add_development_dependency 'fakefs', '~> 0.6'
s.add_development_dependency 'rake', '>= 12.3.3'
s.add_development_dependency 'simplecov'
s.add_development_dependency 'pry', '~> 0.10'

Expand Down