Navigation Menu

Skip to content

Commit

Permalink
Ruby matrix in ci (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
shayonj committed May 13, 2023
1 parent 853cb63 commit 38f440d
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 5 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/ci.yaml
@@ -1,5 +1,10 @@
name: CI
on: [push]
on:
push:
branches:
- main

pull_request:

concurrency:
group: branch-${{ github.ref }}
Expand All @@ -8,6 +13,14 @@ concurrency:
jobs:
rspec:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby:
- "2.7.7"
- "3.0.5"
- "3.1.3"
- "3.2.1"
services:
postgres:
image: postgres:9.6.2-alpine
Expand All @@ -26,7 +39,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.1.3"
ruby-version: ${{ matrix.ruby }}
bundler: default
bundler-cache: true

Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/smoke-tests-13-6.yaml
Expand Up @@ -8,6 +8,14 @@ concurrency:
jobs:
pgbench-rspec:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby:
- "2.7.7"
- "3.0.5"
- "3.1.3"
- "3.2.1"
services:
postgres:
image: postgres:13.6-alpine
Expand All @@ -27,7 +35,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
ruby-version: ${{ matrix.ruby }}
bundler: default
bundler-cache: true

Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/smoke-tests-9-6.yaml
Expand Up @@ -8,6 +8,14 @@ concurrency:
jobs:
pgbench-rspec:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby:
- "2.7.7"
- "3.0.5"
- "3.1.3"
- "3.2.1"
services:
postgres:
image: postgres:9.6.2-alpine
Expand All @@ -26,7 +34,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
ruby-version: ${{ matrix.ruby }}
bundler: default
bundler-cache: true

Expand Down
2 changes: 1 addition & 1 deletion pg_online_schema_change.gemspec
Expand Up @@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
spec.summary = spec.description
spec.homepage = "https://github.com/shayonj/pg-osc"
spec.license = "MIT"
spec.required_ruby_version = ">= 2.6.0"
spec.required_ruby_version = ">= 2.7.0"

spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = spec.homepage
Expand Down

0 comments on commit 38f440d

Please sign in to comment.