Skip to content

Commit

Permalink
Merge pull request #5 from petergoldstein/feature/migrate_ci_to_githu…
Browse files Browse the repository at this point in the history
…b_actions

Migrate CI to GitHub Actions
  • Loading branch information
bdewater authored Mar 11, 2022
2 parents 97ba90d + bc8e984 commit f842139
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 42 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI

on: [push, pull_request]

jobs:
test:

runs-on: ubuntu-latest
name: Test Ruby ${{ matrix.ruby }}

strategy:
fail-fast: false
matrix:
ruby: ["2.5", "2.6", "2.7", "3.0", "3.1", ruby-head]

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true # 'bundle install' and cache gems
ruby-version: ${{ matrix.ruby }}
- name: Run tests
run: bundle exec rake
19 changes: 19 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Lint

on: [push, pull_request]

jobs:
lint:

runs-on: ubuntu-latest
name: Rubocop

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true # 'bundle install' and cache gems
ruby-version: "2.7"
- name: Run Rubocop
run: bundle exec rubocop
65 changes: 27 additions & 38 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,67 +9,56 @@ GEM
specs:
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
ast (2.4.0)
byebug (11.0.1)
coderay (1.1.2)
crack (0.4.3)
safe_yaml (~> 1.0.0)
diff-lcs (1.3)
hashdiff (1.0.0)
ast (2.4.2)
crack (0.4.5)
rexml
diff-lcs (1.5.0)
hashdiff (1.0.1)
jaro_winkler (1.5.4)
jwt (2.2.1)
method_source (0.9.2)
parallel (1.18.0)
parser (2.6.5.0)
ast (~> 2.4.0)
pry (0.12.2)
coderay (~> 1.1.0)
method_source (~> 0.9.0)
pry-byebug (3.7.0)
byebug (~> 11.0)
pry (~> 0.10)
jwt (2.3.0)
parallel (1.21.0)
parser (3.1.1.0)
ast (~> 2.4.1)
public_suffix (4.0.6)
rainbow (3.0.0)
rake (13.0.1)
rspec (3.9.0)
rspec-core (~> 3.9.0)
rspec-expectations (~> 3.9.0)
rspec-mocks (~> 3.9.0)
rspec-core (3.9.0)
rspec-support (~> 3.9.0)
rspec-expectations (3.9.0)
rainbow (3.1.1)
rake (13.0.6)
rexml (3.2.5)
rspec (3.11.0)
rspec-core (~> 3.11.0)
rspec-expectations (~> 3.11.0)
rspec-mocks (~> 3.11.0)
rspec-core (3.11.0)
rspec-support (~> 3.11.0)
rspec-expectations (3.11.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-mocks (3.9.0)
rspec-support (~> 3.11.0)
rspec-mocks (3.11.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-support (3.9.0)
rspec-support (~> 3.11.0)
rspec-support (3.11.0)
rubocop (0.75.0)
jaro_winkler (~> 1.5.1)
parallel (~> 1.10)
parser (>= 2.6)
rainbow (>= 2.2.2, < 4.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 1.7)
ruby-progressbar (1.10.1)
safe_yaml (1.0.5)
ruby-progressbar (1.11.0)
unicode-display_width (1.6.0)
webmock (3.7.6)
addressable (>= 2.3.6)
webmock (3.14.0)
addressable (>= 2.8.0)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)

PLATFORMS
ruby

DEPENDENCIES
bundler (~> 1.17)
fido_metadata!
pry-byebug
rake (~> 13.0)
rspec (~> 3.8)
rubocop (= 0.75.0)
webmock (~> 3.6)

BUNDLED WITH
1.17.3
2.3.9
1 change: 0 additions & 1 deletion bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@ end
puts "Reset the cache via: FidoMetadata.configuration.cache_backend.clear"

# Start REPL
require "pry-byebug"
Pry.start
2 changes: 0 additions & 2 deletions fido_metadata.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = ">= 2.3"

spec.add_dependency "jwt", "~> 2.0"
spec.add_development_dependency "bundler", "~> 1.17"
spec.add_development_dependency "pry-byebug"
spec.add_development_dependency "rake", "~> 13.0"
spec.add_development_dependency "rspec", "~> 3.8"
spec.add_development_dependency "rubocop", "0.75.0"
Expand Down
1 change: 0 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
require "bundler/setup"
require "fido_metadata"

require "pry-byebug"
require "fido_metadata/test_cache_store"
require "webmock/rspec"

Expand Down

0 comments on commit f842139

Please sign in to comment.