Skip to content

Commit

Permalink
Update ruby versions and operating systems
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSmartnik committed Apr 23, 2022
1 parent 7a16fc3 commit 5e6ebce
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: run-ruby_${{ matrix.ruby }}-${{ matrix.protocol }}_protocol
parallel: true

finish:
needs: check
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 5e6ebce

Please sign in to comment.