Run tests using github actions (#32)

This commit is contained in:
Ilya Bylich 2021-01-23 21:54:25 +03:00 committed by GitHub
parent fa14f33cbe
commit 0b02fcf496
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 15 deletions

View File

@ -10,5 +10,32 @@ jobs:
test:
name: run tests
runs-on: ubuntu-latest
env:
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3
CI: true
TRUFFLERUBYOPT: "--engine.Mode=latency"
strategy:
fail-fast: false
matrix:
ruby: ["2.4.10", "2.5.8", "2.6.6", "2.7.2", "3.0.0", "jruby-9.2"]
command: ["bundle exec rake test"]
include:
- ruby: "head"
command: "bundle exec rake test || true"
- ruby: "truffleruby"
command: "bundle exec rake test || true"
steps:
- run: echo Success
- name: checkout
uses: actions/checkout@v2
- name: setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: bundle install
run: bundle install
- name: run tests
run: ${{ matrix.command }}

View File

@ -1,14 +0,0 @@
language: ruby
rvm:
- 2.4.10
- 2.5.8
- 2.6.6
- 2.7.1
- jruby-9.1.15.0
- truffleruby-head
matrix:
allow_failures:
- truffleruby-head
before_install:
- gem install bundler