mirror of
https://github.com/colby-swandale/waterfoul
synced 2024-12-25 21:58:55 +01:00
Merge pull request #8 from colby-swandale/github-actions-ci
This commit is contained in:
commit
ee7dc4f62f
2 changed files with 27 additions and 4 deletions
27
.github/workflows/ruby.yml
vendored
Normal file
27
.github/workflows/ruby.yml
vendored
Normal 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
|
|
@ -1,4 +0,0 @@
|
||||||
language: ruby
|
|
||||||
rvm:
|
|
||||||
- 2.2.3
|
|
||||||
before_install: gem install bundler -v 1.10.6
|
|
Loading…
Reference in a new issue