diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..5c9a5fa7 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: Ruby CI +on: + pull_request: + push: + branches: [ main ] +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + ruby-version: [ '2.4.6', '2.5.5', '2.6.3', 'jruby-9.2.16.0'] + steps: + - uses: actions/checkout@v4 + name: Set up Ruby ${{ matrix.ruby-version }} + - uses: ruby/setup-ruby@v1 + env: + JRUBY_OPTS: "--debug" + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - name: Run tests + run: bundle exec rake test + env: + JRUBY_OPTS: "--debug" diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2d03f9b3..00000000 --- a/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -language: ruby - -before_install: - - gem install bundler - - unset _JAVA_OPTIONS -rvm: - - 2.4.6 - - 2.5.5 - - 2.6.3 - - jruby-9.2.6.0 - -gemfile: - - gemfiles/activesupport4.1.gemfile - - gemfiles/activesupport4.2.gemfile - - gemfiles/activesupport5.0.gemfile - - gemfiles/activesupport5.1.gemfile - - gemfiles/activesupport5.2.gemfile - -env: - global: - - JRUBY_OPTS=--debug