mirror of
https://github.com/rails/execjs
synced 2023-03-27 23:21:20 -04:00
Add NodeJS to the CI
This commit is contained in:
parent
c5fd11d7b0
commit
a7a4096c22
1 changed files with 27 additions and 3 deletions
30
.github/workflows/ci.yml
vendored
30
.github/workflows/ci.yml
vendored
|
@ -3,13 +3,37 @@ name: CI
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
rubies:
|
ubuntu:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest]
|
|
||||||
ruby: [ '3.0', '2.7', '2.6', '2.5' ]
|
ruby: [ '3.0', '2.7', '2.6', '2.5' ]
|
||||||
runs-on: ${{ matrix.os }}
|
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 }}
|
||||||
|
- name: Update Rubygems
|
||||||
|
run: gem update --system
|
||||||
|
- 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
|
||||||
|
macos:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
ruby: [ '3.0', '2.7', '2.6', '2.5' ]
|
||||||
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
Loading…
Reference in a new issue