diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml new file mode 100644 index 0000000..7dbee92 --- /dev/null +++ b/.github/workflows/actions.yml @@ -0,0 +1,23 @@ +name: CI +on: + push: + branches: [master] + pull_request: + branches: [master] +jobs: + test: + runs-on: ubuntu-latest + services: + mysql: + image: mysql + strategy: + matrix: + ruby: [ '2.5', '2.6', '2.7' ] + name: ${{ matrix.ruby }} rake ${{ matrix.task }} + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - run: bundle exec rake diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d1df23b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: ruby -branches: - only: [master] -services: - - mysql -rvm: - - 2.5 - - 2.6 - - 2.7 -matrix: - include: - - rvm: 2.7 - env: RUBYOPT="--jit" - allow_failures: - - env: RUBYOPT="--jit" - -before_install: ruby -e "File.write('Gemfile.lock', File.read('Gemfile.lock').split('BUNDLED WITH').first)"