Skip to content

Commit

Permalink
Fix coverage and add Ruby 3.1, 3.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Mar 2, 2023
1 parent 1b21523 commit 323c66a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ jobs:
- macos

ruby:
- "2.6"
- "2.7"
- "3.0"
- "3.1"
- "3.2"

experimental: [false]
env: [""]
Expand All @@ -34,8 +35,8 @@ jobs:
ruby: head
experimental: true
- os: ubuntu
ruby: 2.6
env: COVERAGE=PartialSummary,Coveralls
ruby: "3.2"
env: COVERAGE=PartialSummary
experimental: true

steps:
Expand Down
8 changes: 4 additions & 4 deletions bake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ def external

Bundler.with_clean_env do
clone_and_test("async-io")
clone_and_test("async-pool")
clone_and_test("async-websocket")
clone_and_test("async-pool", "sus")
clone_and_test("async-websocket", "sus")
clone_and_test("async-dns")
clone_and_test("async-http")
clone_and_test("falcon")
Expand All @@ -16,7 +16,7 @@ def external

private

def clone_and_test(name)
def clone_and_test(name, command = "rspec")
require 'fileutils'

path = "external/#{name}"
Expand All @@ -35,5 +35,5 @@ def clone_and_test(name)
file.puts('gem "async", path: "../../"')
end

system("cd #{path} && bundle install && bundle exec rspec") or abort("Tests failed!")
system("cd #{path} && bundle install && bundle exec #{command}") or abort("Tests for #{name} failed!")
end

0 comments on commit 323c66a

Please sign in to comment.