From 5e6ebcec99d83b427b9fdeffbf01d309633a5c9c Mon Sep 17 00:00:00 2001 From: TheSmartnik Date: Sat, 23 Apr 2022 17:30:52 +0400 Subject: [PATCH] Update ruby versions and operating systems --- .github/workflows/check.yml | 17 ++++++++++------- spec/spec_helper.rb | 2 +- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 6d16c5591..cea517d4a 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -6,12 +6,17 @@ on: jobs: check: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} continue-on-error: true strategy: matrix: - ruby: [ '2.5', '2.6', '2.7', '3.0' ] + os: ['ubuntu-latest', 'windows-2022'] + ruby: [ '2.7', '3.0', '3.1' ] protocol: [ 'json', 'msgpack' ] + env: + RSPEC_RETRY: true + PARALLEL_TEST_PROCESSORS: 2 + PROTOCOL: ${{ matrix.protocol }} steps: - uses: actions/checkout@v2 with: @@ -20,16 +25,14 @@ jobs: with: ruby-version: ${{ matrix.ruby }} bundler-cache: true - - env: - RSPEC_RETRY: true - PARALLEL_TEST_PROCESSORS: 2 - PROTOCOL: ${{ matrix.protocol }} - run: ./spec/run_parallel_tests + - run: 'bundle exec parallel_rspec "./spec/unit"' + - run: 'bundle exec parallel_rspec "./spec/acceptance" --prefix-output-with-test-env-number' - uses: coverallsapp/github-action@1.1.3 with: github-token: ${{ secrets.GITHUB_TOKEN }} flag-name: run-ruby_${{ matrix.ruby }}-${{ matrix.protocol }}_protocol parallel: true + finish: needs: check runs-on: ubuntu-latest diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index e96e9cdf9..ca8339c5b 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -19,7 +19,7 @@ def console(message) end require 'webmock/rspec' - +require 'em/pure_ruby' if Gem.win_platform? require 'ably' require 'support/api_helper'