Add async/await & promise support to Bun runner #78
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
ubuntu: | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: [ '3.2', '3.1', '3.0', '2.7', '2.6', '2.5', 'jruby', 'truffleruby', 'truffleruby+graalvm' ] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Node | |
run: sudo apt-get install -y nodejs | |
- name: Install Bun | |
uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
rubygems: ${{ (matrix.ruby_version < '2.6' && '3.2.3') || 'latest' }} | |
- name: Install bundler | |
run: gem install bundler -v '2.2.16' | |
- name: Install dependencies | |
run: bundle install | |
- name: Set TRUFFLERUBYOPT | |
run: echo "TRUFFLERUBYOPT=--jvm --polyglot" >> $GITHUB_ENV | |
if: startsWith(matrix.ruby, 'truffleruby+graalvm') | |
- name: Install GraalJS | |
run: truffleruby-polyglot-get js | |
if: startsWith(matrix.ruby, 'truffleruby+graalvm') | |
- name: Run test | |
run: rake | |
- name: Install gem | |
run: rake install | |
macos: | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby: [ '3.2', '3.1', '3.0', '2.7', '2.6', '2.5' ] | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install V8 | |
run: | | |
brew update | |
brew install v8 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
rubygems: ${{ (matrix.ruby_version < '2.6' && '3.2.3') || 'latest' }} | |
- name: Install bundler | |
run: gem install bundler -v '2.2.16' | |
- name: Install dependencies | |
run: bundle install | |
- name: Run test | |
run: rake | |
- name: Install gem | |
run: rake install |