diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..0144eea --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,37 @@ +name: Ruby CI + +on: + push: + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + ruby-version: + - 3.1 + - "3.0" + - 2.7 + - jruby-head + mongodb-version: + - "5.0" + + steps: + - uses: actions/checkout@v3 + - name: Set up Ruby ${{ matrix.ruby-version }} + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - name: Start MongoDB + uses: supercharge/mongodb-github-action@1.7.0 + with: + mongodb-version: ${{ matrix.mongodb-version }} + - name: Run tests + run: bundle exec rake test + env: + MONGO: "1" + - name: Run cucumber + run: bundle exec cucumber diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5316343..0000000 --- a/.travis.yml +++ /dev/null @@ -1,29 +0,0 @@ -language: ruby - -sudo: false - -rvm: - - 2.3 - - 2.4 - - 2.5 - - 2.6 - - ruby-head - - jruby-9.2.4.1 - - jruby-head - -before_install: - - gem install bundler - -script: - - bundle exec rake test MONGO=1 - - bundle exec cucumber - -matrix: - allow_failures: - - rvm: ruby-head - - rvm: jruby-head - -cache: bundler - -services: - - mongodb