5b3fb5fa87
We can drop Ruby 2.4 from our test run matrix. It is beyond EOL. Let's add 2.7 instead.
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
name: Ruby Build
|
|
on: [push, pull_request]
|
|
jobs:
|
|
jruby_build:
|
|
name: JRuby (${{ matrix.ruby }})
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
ruby: [jruby-9.2.18]
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v2
|
|
- name: List files in the repository
|
|
run: |
|
|
ls ${{ github.workspace }}
|
|
- name: Set up Java
|
|
uses: actions/setup-java@v2
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '11'
|
|
- name: Set up Ruby
|
|
uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: ${{ matrix.ruby }}
|
|
bundler-cache: true
|
|
- name: Run tests
|
|
run: bundle exec rake
|
|
mri_build:
|
|
name: Ruby (${{ matrix.ruby }})
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
ruby: [2.6, 2.7, 3.0]
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v2
|
|
- name: List files in the repository
|
|
run: |
|
|
ls ${{ github.workspace }}
|
|
- name: Set up Ruby
|
|
uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: ${{ matrix.ruby }}
|
|
bundler-cache: true
|
|
- name: Run tests
|
|
run: bundle exec rake
|