Merge pull request #8 from colby-swandale/github-actions-ci

This commit is contained in:
Colby Swandale 2020-05-16 13:12:41 +10:00 committed by GitHub
commit ee7dc4f62f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 4 deletions

27
.github/workflows/ruby.yml vendored Normal file
View file

@ -0,0 +1,27 @@
name: Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.5, 2.6, 2.7, jruby, truffleruby]
steps:
- name: Install dependencies
run: |
sudo apt update -qq && sudo apt install libsdl2-dev
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rake

View file

@ -1,4 +0,0 @@
language: ruby
rvm:
- 2.2.3
before_install: gem install bundler -v 1.10.6