-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
update README.md/gemspec; migrate to GitHub actions #456
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please don't hardcode voxpupuli. See https://github.com/voxpupuli/.github/blob/master/workflow-templates/gem-release.yml for an example. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
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" | ||
coverage: "yes" | ||
env: | ||
COVERAGE: ${{ matrix.coverage }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Ruby ${{ matrix.ruby }} | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
- name: Run tests | ||
run: bundle exec rake | ||
- name: Build gem | ||
run: gem build *.gemspec |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,19 @@ | ||
source "https://rubygems.org" | ||
source 'https://rubygems.org' | ||
|
||
gemspec | ||
|
||
gem "json", ">= 1.7", :platforms => :mri_19 | ||
gem 'simplecov', :require => false | ||
group :release do | ||
gem 'github_changelog_generator', require: false | ||
end | ||
|
||
group :coverage, optional: ENV['COVERAGE']!='yes' do | ||
gem 'simplecov-console', :require => false | ||
gem 'codecov', :require => false | ||
end | ||
|
||
group :tests do | ||
gem 'rubocop', '~> 1.11.0' | ||
gem 'rubocop-rspec', '~> 2.2.0' | ||
gem 'rubocop-rake', '~> 0.5.1' | ||
gem 'rubocop-performance', '~> 1.10.2' | ||
end |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,9 @@ gem_name = "json-schema" | |
Gem::Specification.new do |s| | ||
s.name = gem_name | ||
s.version = version | ||
s.authors = ["Kenny Hoxworth"] | ||
s.email = "[email protected]" | ||
s.homepage = "http://github.com/ruby-json-schema/json-schema/tree/master" | ||
s.authors = ["Kenny Hoxworth", "Vox Pupuli"] | ||
s.email = "[email protected]" | ||
s.homepage = "http://github.com/voxpupuli/json-schema/" | ||
s.summary = "Ruby JSON Schema Validator" | ||
s.files = Dir[ "lib/**/*", "resources/*.json" ] | ||
s.require_path = "lib" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is useless. There is no bundler involved so it can be dropped.