forked from jmhodges/rchardet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now that Travis CI.org is no more, this PR migrates the CI to GitHub actions. In addition to setting up the pipeline, this PR: 1. Removes several gems that are either inapplicable or unsupported (wwtd, minitest-rg) 2. Updates the gemspec and Gemfile to use the gemspec for specifying dependencies 3. Eliminates use of an unused loop variable in favor of an explicit power. 4. Adds testing on modern Rubies 5. Removes the Gemfile.lock so that different Rubies can use different minitest/rake versions
- Loading branch information
1 parent
5312e36
commit 1196a23
Showing
8 changed files
with
40 additions
and
40 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,35 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake | ||
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby | ||
|
||
name: build | ||
|
||
on: [pull_request, push] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: | ||
- '3.1' | ||
- '3.0' | ||
- '2.7' | ||
- '2.6' | ||
- '2.5' | ||
- '2.4' | ||
- '2.3' | ||
- '2.2' | ||
- '2.1' | ||
- '2.0' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
- run: bundle exec rake |
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,7 +1,3 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "rake" | ||
gem "wwtd" | ||
gem "bump" | ||
gem "minitest" | ||
gem "minitest-rg" | ||
gemspec |
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
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
require 'bundler/setup' | ||
require 'minitest/autorun' | ||
require 'minitest/rg' | ||
|
||
$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__) | ||
require_relative '../lib/rchardet' |