diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..4617f01f --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,36 @@ +name: test + +on: [push, pull_request] + +jobs: + tests: + runs-on: ubuntu-latest + strategy: + fail-fast: false + + matrix: + ruby-version: + - '2.3' + - '2.4' + - '2.5' + - '2.6' + - '2.7' + - '3.0' + - '3.1' + - '3.2' + - '3.3' + - ruby-head + + steps: + - run: sudo apt-get install -y tidy tcl tk + + - uses: actions/checkout@v3 + + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true + continue-on-error: ${{ matrix.ruby-version == 'ruby-head' }} + + - run: bundle exec rake + continue-on-error: ${{ matrix.ruby-version == 'ruby-head' }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 63605848..00000000 --- a/.travis.yml +++ /dev/null @@ -1,30 +0,0 @@ -sudo: false -dist: trusty - -addons: - apt: - packages: - - tidy - - tcl - - tk - -install: bundle install --without=benchmark - -rvm: - - 1.9.3 - - 2.0.0 - - 2.1 - - 2.2 - - 2.3 - - 2.4 - - 2.5 - - 2.6 - - 2.7 - - ruby-head - -matrix: - allow_failures: - - rvm: ruby-head - -notifications: - email: false