Move CI to GitHub Actions

Closes #725.
Closes #726.

Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
This commit is contained in:
Akira Matsuda
2022-04-03 10:36:57 +09:00
committed by Robin Dupret
parent 3e3f0b522f
commit 14d3c28e32
2 changed files with 36 additions and 30 deletions

36
.github/workflows/test.yml vendored Normal file
View File

@@ -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' }}

View File

@@ -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