2021-05-07 04:03:56 -04:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2021-05-07 05:57:49 -04:00
|
|
|
ubuntu:
|
2021-05-07 04:03:56 -04:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2021-10-19 13:34:28 -04:00
|
|
|
ruby: [ '3.0', '2.7', '2.6', '2.5', 'jruby', 'truffleruby', 'truffleruby+graalvm' ]
|
2021-05-07 05:57:49 -04:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Node
|
|
|
|
run: sudo apt-get install -y nodejs
|
|
|
|
- name: Set up Ruby
|
|
|
|
uses: ruby/setup-ruby@v1
|
|
|
|
with:
|
|
|
|
ruby-version: ${{ matrix.ruby }}
|
2020-11-22 10:20:48 -05:00
|
|
|
|
2021-05-07 05:57:49 -04:00
|
|
|
- name: Update Rubygems
|
|
|
|
run: gem update --system
|
|
|
|
- name: Install bundler
|
|
|
|
run: gem install bundler -v '2.2.16'
|
|
|
|
- name: Install dependencies
|
|
|
|
run: bundle install
|
2020-11-22 10:20:48 -05:00
|
|
|
|
|
|
|
- name: Set TRUFFLERUBYOPT
|
|
|
|
run: echo "TRUFFLERUBYOPT=--jvm --polyglot" >> $GITHUB_ENV
|
2021-10-19 13:34:28 -04:00
|
|
|
if: startsWith(matrix.ruby, 'truffleruby+graalvm')
|
2022-07-08 08:34:50 -04:00
|
|
|
- name: Install GraalVM js component
|
|
|
|
run: if ! gu list | grep '^js '; then gu install js; fi
|
|
|
|
if: startsWith(matrix.ruby, 'truffleruby+graalvm')
|
|
|
|
|
2021-05-07 05:57:49 -04:00
|
|
|
- name: Run test
|
|
|
|
run: rake
|
|
|
|
- name: Install gem
|
|
|
|
run: rake install
|
|
|
|
macos:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
ruby: [ '3.0', '2.7', '2.6', '2.5' ]
|
|
|
|
runs-on: macos-latest
|
2021-05-07 04:03:56 -04:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
2021-05-15 06:37:38 -04:00
|
|
|
- name: Install V8
|
|
|
|
run: |
|
|
|
|
brew update
|
|
|
|
brew install v8
|
2021-05-07 04:03:56 -04:00
|
|
|
- name: Set up Ruby
|
|
|
|
uses: ruby/setup-ruby@v1
|
|
|
|
with:
|
|
|
|
ruby-version: ${{ matrix.ruby }}
|
2021-05-07 04:30:06 -04:00
|
|
|
- name: Update Rubygems
|
|
|
|
run: gem update --system
|
|
|
|
- name: Install bundler
|
|
|
|
run: gem install bundler -v '2.2.16'
|
2021-05-07 04:03:56 -04:00
|
|
|
- name: Install dependencies
|
|
|
|
run: bundle install
|
|
|
|
- name: Run test
|
|
|
|
run: rake
|
|
|
|
- name: Install gem
|
|
|
|
run: rake install
|