Skip to content

Commit

Permalink
DEV: Switch from Travis to Actions (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
OsamaSayegh authored and pboling committed Nov 30, 2023
1 parent 9f67898 commit c1cb01d
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 7 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Omniauth JWT Tests

on:
pull_request:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby: ["2.7", "2.6", "2.5"]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Bundler cache
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.ruby }}-gems-
- name: Setup gems
run: |
gem install bundler
bundle config path vendor/bundle
bundle install --jobs 4
- name: Tests
run: bundle exec rspec
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
RSpec.configure do |config|
config.treat_symbols_as_metadata_keys_with_true_values = true
config.run_all_when_everything_filtered = true
config.filter_run :focus

Expand Down

0 comments on commit c1cb01d

Please sign in to comment.