diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ee1bfc2..0a0975c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,12 +1,14 @@ name: CI on: - - push - - pull_request + push: + branches: + - master + pull_request: jobs: test: - name: Ruby ${{ matrix.ruby }} / Rails ${{ matrix.rails }} + name: Ruby ${{ matrix.ruby }} / ${{ matrix.gemfile }} strategy: fail-fast: false matrix: @@ -16,16 +18,26 @@ jobs: - 3.0 - 3.1 - 3.2 + - 3.3 + - 3.4 gemfile: - rails-7.0 - allow_failures: - - false + - rails-7.1 + - rails-7.2 + - rails-8.0 + exclude: + - ruby: 3.0 + gemfile: rails-7.2 + - ruby: 3.0 + gemfile: rails-8.0 + - ruby: 3.1 + gemfile: rails-8.0 runs-on: ${{ matrix.os }} env: BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Ruby ${{ matrix.ruby }} uses: ruby/setup-ruby@v1 with: diff --git a/gemfiles/rails-7.1.gemfile b/gemfiles/rails-7.1.gemfile new file mode 100644 index 0000000..858bd79 --- /dev/null +++ b/gemfiles/rails-7.1.gemfile @@ -0,0 +1,7 @@ +source "https://rubygems.org" + +git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } + +gem "activemodel", "~> 7.1.0" + +gemspec path: "../" diff --git a/gemfiles/rails-7.2.gemfile b/gemfiles/rails-7.2.gemfile new file mode 100644 index 0000000..8397c62 --- /dev/null +++ b/gemfiles/rails-7.2.gemfile @@ -0,0 +1,7 @@ +source "https://rubygems.org" + +git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } + +gem "activemodel", "~> 7.2.0" + +gemspec path: "../" diff --git a/gemfiles/rails-8.0.gemfile b/gemfiles/rails-8.0.gemfile new file mode 100644 index 0000000..a6b5a0f --- /dev/null +++ b/gemfiles/rails-8.0.gemfile @@ -0,0 +1,7 @@ +source "https://rubygems.org" + +git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } + +gem "activemodel", "~> 8.0.0" + +gemspec path: "../"