Skip to content

Commit 08839ef

Browse files
committed
Add async stable-v1 and head to test matrix.
1 parent bf3fb68 commit 08839ef

File tree

5 files changed

+74
-2
lines changed

5 files changed

+74
-2
lines changed

.github/workflows/async-head.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Async head
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ${{matrix.os}}-latest
8+
9+
strategy:
10+
matrix:
11+
os:
12+
- ubuntu
13+
14+
ruby:
15+
- head
16+
17+
env:
18+
BUNDLE_GEMFILE: gems/async-head.rb
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: ruby/setup-ruby@v1
23+
with:
24+
ruby-version: ${{matrix.ruby}}
25+
bundler-cache: true
26+
27+
- name: Run tests
28+
timeout-minutes: 5
29+
run: bundle exec rspec

.github/workflows/async-v1.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Async v1
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ${{matrix.os}}-latest
8+
9+
strategy:
10+
matrix:
11+
os:
12+
- ubuntu
13+
14+
ruby:
15+
- 2.7
16+
17+
env:
18+
BUNDLE_GEMFILE: gems/async-v1.rb
19+
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: ruby/setup-ruby@v1
23+
with:
24+
ruby-version: ${{matrix.ruby}}
25+
bundler-cache: true
26+
27+
- name: Run tests
28+
timeout-minutes: 5
29+
run: bundle exec rspec

async-container.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Gem::Specification.new do |spec|
1515

1616
spec.required_ruby_version = ">= 2.5"
1717

18-
spec.add_dependency "async", "~> 1.0"
19-
spec.add_dependency "async-io", "~> 1.26"
18+
spec.add_dependency "async"
19+
spec.add_dependency "async-io"
2020

2121
spec.add_development_dependency "async-rspec", "~> 1.1"
2222
spec.add_development_dependency "bundler"

gems/async-head.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# frozen_string_literal: true
2+
3+
source 'https://rubygems.org'
4+
5+
gemspec path: "../"
6+
7+
gem 'async', git: "https://github.com/socketry/async"

gems/async-v1.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# frozen_string_literal: true
2+
3+
source 'https://rubygems.org'
4+
5+
gemspec path: "../"
6+
7+
gem 'async', '~> 1.0'

0 commit comments

Comments
 (0)