From a7a4096c22214b8810780bca7a39e29f792b7e94 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Fri, 7 May 2021 11:57:49 +0200 Subject: [PATCH] Add NodeJS to the CI --- .github/workflows/ci.yml | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 65fcecd..502f256 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,13 +3,37 @@ name: CI on: [push, pull_request] jobs: - rubies: + ubuntu: strategy: fail-fast: false matrix: - os: [ubuntu-latest, macos-latest] 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: - name: Checkout uses: actions/checkout@v2