Skip to content

Commit

Permalink
Merge pull request #26 from omniauth/add_github_actions
Browse files Browse the repository at this point in the history
Add GitHub actions
  • Loading branch information
BobbyMcWho authored Apr 14, 2022
2 parents bd84810 + dffe150 commit 22aead3
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 13 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.6', '2.7', '3.0', '3.1']

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 # 'bundle install' and cache
- name: Run specs
run: |
bundle exec rake
17 changes: 4 additions & 13 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,12 @@ RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include('lib/**/*.rb')
end






require 'bundler/gem_tasks'

require 'rake/testtask'

Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = false
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new do |spec|
spec.pattern = 'spec/**/*_spec.rb'
end


task default: :test
task default: :spec

0 comments on commit 22aead3

Please sign in to comment.