-
-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #346 from gjtorikian/migrate-to-gh-actions
Switch to GitHub Actions
- Loading branch information
Showing
15 changed files
with
106 additions
and
195 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,41 @@ | ||
name: Ruby CI | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: true | ||
matrix: | ||
ruby-version: | ||
- 3.0.0 | ||
- 2.7.2 | ||
- 2.6.6 | ||
- 2.5.8 | ||
experimental: [false] | ||
include: | ||
- ruby-version: head | ||
experimental: true | ||
|
||
continue-on-error: ${{ matrix.experimental }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Ruby ${{ matrix.ruby-version }} | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby-version }} | ||
bundler-cache: true | ||
- name: Install dependencies | ||
run: | | ||
bundle config set --local path '../../vendor/bundle' | ||
bundle install | ||
- name: Run tests | ||
run: bundle exec rake |
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,22 @@ | ||
name: Linting | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.0 | ||
bundler-cache: true | ||
- run: bundle install | ||
- name: Rubocop | ||
run: bundle exec rake rubocop |
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,4 @@ | ||
inherit_gem: | ||
rubocop-standard: | ||
- config/default.yml | ||
- config/minitest.yml |
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
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 |
---|---|---|
|
@@ -15,3 +15,7 @@ Rake::TestTask.new do |t| | |
end | ||
|
||
task default: :test | ||
|
||
require 'rubocop/rake_task' | ||
|
||
RuboCop::RakeTask.new(:rubocop) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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 |
---|---|---|
@@ -1,29 +1,30 @@ | ||
# frozen_string_literal: true | ||
|
||
require File.expand_path('../lib/html/pipeline/version', __FILE__) | ||
require File.expand_path('lib/html/pipeline/version', __dir__) | ||
|
||
Gem::Specification.new do |gem| | ||
gem.name = 'html-pipeline' | ||
gem.version = HTML::Pipeline::VERSION | ||
gem.license = 'MIT' | ||
gem.authors = ['Ryan Tomayko', 'Jerry Cheung', 'Garen J. Torikian'] | ||
gem.email = ['[email protected]', '[email protected]', '[email protected]'] | ||
gem.description = 'GitHub HTML processing filters and utilities' | ||
gem.description = 'HTML processing filters and utilities' | ||
gem.summary = 'Helpers for processing content through a chain of filters' | ||
gem.homepage = 'https://github.com/jch/html-pipeline' | ||
|
||
gem.files = `git ls-files -z`.split("\x0").reject { |f| f =~ %r{^(test|gemfiles|script)/} } | ||
gem.require_paths = ['lib'] | ||
|
||
gem.add_dependency 'activesupport', '>= 2' | ||
gem.add_dependency 'nokogiri', '>= 1.4' | ||
gem.required_ruby_version = ['>= 2.5.8', '< 4.0'] | ||
|
||
gem.post_install_message = <<msg | ||
------------------------------------------------- | ||
Thank you for installing html-pipeline! | ||
You must bundle Filter gem dependencies. | ||
See html-pipeline README.md for more details. | ||
https://github.com/jch/html-pipeline#dependencies | ||
------------------------------------------------- | ||
msg | ||
gem.add_dependency 'nokogiri', '~> 1.11' | ||
|
||
gem.post_install_message = <<~MSG | ||
------------------------------------------------- | ||
Thank you for installing html-pipeline! | ||
You must bundle Filter gem dependencies. | ||
See html-pipeline README.md for more details. | ||
https://github.com/jch/html-pipeline#dependencies | ||
------------------------------------------------- | ||
MSG | ||
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
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
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