3f0b61081b
* Enclose all the version numbers in quotes
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.3.2.0]
|
|
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', '3.1']
|
|
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
|