Skip to content

Commit 22aead3

Browse files
authored
Merge pull request #26 from omniauth/add_github_actions
Add GitHub actions
2 parents bd84810 + dffe150 commit 22aead3

File tree

2 files changed

+25
-13
lines changed

2 files changed

+25
-13
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
ruby-version: ['2.6', '2.7', '3.0', '3.1']
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Ruby ${{ matrix.ruby-version }}
15+
uses: ruby/setup-ruby@v1
16+
with:
17+
ruby-version: ${{ matrix.ruby-version }}
18+
bundler-cache: true # 'bundle install' and cache
19+
- name: Run specs
20+
run: |
21+
bundle exec rake

Rakefile

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,12 @@ RDoc::Task.new(:rdoc) do |rdoc|
1414
rdoc.rdoc_files.include('lib/**/*.rb')
1515
end
1616

17-
18-
19-
20-
21-
2217
require 'bundler/gem_tasks'
2318

24-
require 'rake/testtask'
25-
26-
Rake::TestTask.new(:test) do |t|
27-
t.libs << 'lib'
28-
t.libs << 'test'
29-
t.pattern = 'test/**/*_test.rb'
30-
t.verbose = false
19+
require 'rspec/core/rake_task'
20+
RSpec::Core::RakeTask.new do |spec|
21+
spec.pattern = 'spec/**/*_spec.rb'
3122
end
3223

3324

34-
task default: :test
25+
task default: :spec

0 commit comments

Comments
 (0)