diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 664cb55..dffbc8d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,5 +1,10 @@ name: CI -on: [push] +on: + push: + branches: + - main + + pull_request: concurrency: group: branch-${{ github.ref }} @@ -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 @@ -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 diff --git a/.github/workflows/smoke-tests-13-6.yaml b/.github/workflows/smoke-tests-13-6.yaml index 47e32d7..34e8f70 100644 --- a/.github/workflows/smoke-tests-13-6.yaml +++ b/.github/workflows/smoke-tests-13-6.yaml @@ -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 @@ -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 diff --git a/.github/workflows/smoke-tests-9-6.yaml b/.github/workflows/smoke-tests-9-6.yaml index 575eb6a..c2bd709 100644 --- a/.github/workflows/smoke-tests-9-6.yaml +++ b/.github/workflows/smoke-tests-9-6.yaml @@ -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 @@ -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 diff --git a/pg_online_schema_change.gemspec b/pg_online_schema_change.gemspec index 9180cdc..df70afe 100644 --- a/pg_online_schema_change.gemspec +++ b/pg_online_schema_change.gemspec @@ -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