diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..efd8d7a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +name: CI +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true +jobs: + ci: + name: ${{ matrix.ruby-version }} ${{ matrix.friendlyName }} + runs-on: ${{ matrix.os }} + + strategy: + matrix: + ruby-version: + - "2.7" + - "3.0" + - "3.1" + - "3.2" + - "3.3" + os: + - ubuntu-latest + include: + - os: ubuntu-latest + friendlyName: Linux + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Setup Ruby and install bundle + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true + - name: Run tests + run: bundle exec rake diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 01c32c0..0000000 --- a/.travis.yml +++ /dev/null @@ -1,38 +0,0 @@ -language: ruby - -sudo: false -cache: bundler - -matrix: - fast_finish: true - include: - - rvm: 3.0 - env: WITH_COVERALLS=true - - rvm: 2.7 - env: WITH_COVERALLS=false - - rvm: 2.6 - env: WITH_COVERALLS=false - - rvm: 2.5 - env: WITH_COVERALLS=false - - rvm: jruby-19mode - env: WITH_COVERALLS=false - -before_install: - - gem update --system - -install: - - if [[ $WITH_COVERALLS = "true" ]]; then - bundle install --without debug optional; - else - bundle install --without debug optional coverage; - fi - -script: - - if [[ $WITH_COVERALLS = "true" ]]; then - bundle exec rake test_with_coveralls; - else - bundle exec rake; - fi - -notifications: - email: false