Skip to content

Commit

Permalink
Merge pull request #533 from n-rodriguez/wip/github_actions
Browse files Browse the repository at this point in the history
Switch from Travis to GithubActions
  • Loading branch information
floere authored Oct 18, 2024
2 parents c96645b + 5c50304 commit b48598b
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 52 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
name: CI

on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
schedule:
- cron: '0 4 1 * *'

jobs:
rspec:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
ruby:
- '3.3'
- '3.2'
- '3.1'
- '3.0'
- 'head'
- 'jruby'
- 'truffleruby'

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: RSpec
run: bundle exec rspec
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

11 changes: 7 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
source 'http://rubygems.org'

gem 'rake', require: false
gem 'rubocop', '~> 1.66'
gem 'rubocop-performance'
gem 'rubocop-rake'
gem 'rubocop-rspec'

group :test do
gem 'ae'
Expand All @@ -21,6 +17,13 @@ group :release do
gem 'gem-release'
end

platforms :ruby do
gem 'rubocop', '~> 1.66'
gem 'rubocop-performance'
gem 'rubocop-rake'
gem 'rubocop-rspec'
end

# platforms :rbx do
# gem 'rubysl'
# gem 'json'
Expand Down
64 changes: 26 additions & 38 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,10 @@ GEM
ansi (1.5.0)
ast (2.4.2)
brass (1.2.1)
coveralls (0.8.23)
json (>= 1.8, < 3)
simplecov (~> 0.16.1)
term-ansicolor (~> 1.3)
thor (>= 0.19.4, < 2.0)
tins (~> 1.6)
diff-lcs (1.5.0)
docile (1.4.0)
diff-lcs (1.5.1)
docile (1.4.1)
gem-release (2.2.2)
json (2.6.3)
json (2.7.2)
language_server-protocol (3.17.0.3)
parallel (1.26.3)
parser (3.3.5.0)
Expand All @@ -27,23 +21,23 @@ GEM
brass
racc (1.8.1)
rainbow (3.1.1)
rake (13.0.6)
rake (13.2.1)
regexp_parser (2.9.2)
rexml (3.3.8)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
rspec-mocks (~> 3.12.0)
rspec-core (3.12.2)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.3)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.1)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-mocks (3.12.5)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.0)
rubocop (1.66.1)
rspec-support (~> 3.13.0)
rspec-support (3.13.1)
rubocop (1.67.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
Expand All @@ -63,35 +57,29 @@ GEM
rubocop-rspec (3.1.0)
rubocop (~> 1.61)
ruby-progressbar (1.13.0)
simplecov (0.16.1)
simplecov (0.22.0)
docile (~> 1.1)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-cobertura (1.4.2)
simplecov (~> 0.8)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-cobertura (2.1.0)
rexml
simplecov (~> 0.19)
simplecov-console (0.9.2)
ansi
simplecov
terminal-table
simplecov-html (0.10.2)
sync (0.5.0)
term-ansicolor (1.7.1)
tins (~> 1.0)
simplecov-html (0.13.1)
simplecov_json_formatter (0.1.4)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
thor (1.2.1)
tins (1.32.1)
sync
unicode-display_width (2.6.0)

PLATFORMS
-darwin-21
arm64-darwin-22
arm64-darwin-23
ruby

DEPENDENCIES
ae
coveralls
gem-release
pippi
qed
Expand All @@ -107,4 +95,4 @@ DEPENDENCIES
simplecov-console

BUNDLED WITH
2.4.12
2.5.22
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
require 'simplecov-console'
require 'simplecov-cobertura'

SimpleCov.minimum_coverage 95
SimpleCov.minimum_coverage 92

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new(
[
Expand Down

0 comments on commit b48598b

Please sign in to comment.