Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reduce test matrix #6

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 26 additions & 58 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,78 +5,46 @@ on: [push, pull_request]
jobs:
build:
name: >-
Mongoid Test with: - Ruby ${{ matrix.entry.ruby }} - MongoDB ${{ matrix.entry.mongodb }} - Gemfile ${{ matrix.entry.gemfile }})
Mongoid Test with: - Ruby ${{ matrix.ruby }} - MongoDB ${{ matrix.mongodb }} - Gemfile ${{ matrix.gemfile }})
env:
CI: true
TESTOPTS: "-v"
BUNDLE_GEMFILE: gemfiles/${{ matrix.entry.gemfile }}.gemfile
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
runs-on: ubuntu-latest
continue-on-error: false
strategy:
matrix:
entry:
- { ruby: "2.6", gemfile: 'mongoid_3', mongodb: "3.6" }
- { ruby: "2.6", gemfile: 'mongoid_4', mongodb: "3.6" }
- { ruby: "2.6", gemfile: 'mongoid_4', mongodb: "3.6" }
- { ruby: "2.6", gemfile: 'mongoid_5', mongodb: "3.6" }
- { ruby: "2.6", gemfile: 'mongoid_5', mongodb: "3.6" }
- { ruby: "2.6", gemfile: 'mongoid_6', mongodb: "3.6" }
- { ruby: "2.6", gemfile: 'mongoid_6', mongodb: "3.6" }
- { ruby: "2.6", gemfile: 'mongoid_6', mongodb: "3.6" }
- { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "3.6" }
- { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "3.6" }
- { ruby: "2.7", gemfile: 'mongoid_7', mongodb: "3.6" }
- { ruby: "3.0", gemfile: 'mongoid_8', mongodb: "3.6" }
- { ruby: "3.1", gemfile: 'mongoid_8', mongodb: "3.6" }
- { ruby: "2.6", gemfile: 'mongoid_6', mongodb: "4.0" }
- { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "4.0" }
- { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "4.0" }
- { ruby: "2.7", gemfile: 'mongoid_7', mongodb: "4.0" }
- { ruby: "3.0", gemfile: 'mongoid_8', mongodb: "4.0" }
- { ruby: "3.1", gemfile: 'mongoid_8', mongodb: "4.0" }
- { ruby: "2.6", gemfile: 'mongoid_6', mongodb: "4.2" }
- { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "4.2" }
- { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "4.2" }
- { ruby: "2.7", gemfile: 'mongoid_7', mongodb: "4.2" }
- { ruby: "3.0", gemfile: 'mongoid_8', mongodb: "4.2" }
- { ruby: "3.1", gemfile: 'mongoid_8', mongodb: "4.2" }
- { ruby: "2.6", gemfile: 'mongoid_6', mongodb: "4.4" }
- { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "4.4" }
- { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "4.4" }
- { ruby: "2.7", gemfile: 'mongoid_7', mongodb: "4.4" }
- { ruby: "3.0", gemfile: 'mongoid_8', mongodb: "4.4" }
- { ruby: "3.1", gemfile: 'mongoid_8', mongodb: "4.4" }
- { ruby: "2.6", gemfile: 'mongoid_6', mongodb: "5.0" }
- { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "5.0" }
- { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "5.0" }
- { ruby: "2.7", gemfile: 'mongoid_7', mongodb: "5.0" }
- { ruby: "3.0", gemfile: 'mongoid_8', mongodb: "5.0" }
- { ruby: "3.1", gemfile: 'mongoid_8', mongodb: "5.0" }
- { ruby: "3.1", gemfile: 'mongoid_9', mongodb: "5.0" }
- { ruby: "2.6", gemfile: 'mongoid_6', mongodb: "6.0" }
- { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "6.0" }
- { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "6.0" }
- { ruby: "2.7", gemfile: 'mongoid_7', mongodb: "6.0" }
- { ruby: "3.0", gemfile: 'mongoid_8', mongodb: "6.0" }
- { ruby: "3.1", gemfile: 'mongoid_8', mongodb: "6.0" }
- { ruby: "3.1", gemfile: 'mongoid_9', mongodb: "6.0" }
- { ruby: "2.6", gemfile: 'mongoid_6', mongodb: "7.0" }
- { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "7.0" }
- { ruby: "2.6", gemfile: 'mongoid_7', mongodb: "7.0" }
- { ruby: "2.7", gemfile: 'mongoid_7', mongodb: "7.0" }
- { ruby: "3.0", gemfile: 'mongoid_8', mongodb: "7.0" }
- { ruby: "3.1", gemfile: 'mongoid_8', mongodb: "7.0" }
- { ruby: "3.1", gemfile: 'mongoid_9', mongodb: "7.0" }
ruby: ["2.6", "2.7", "3.0", "3.1"]
gemfile: ["monogid_3", "mongoid_4", "mongoid_5", "mongoid_6", "mongoid_7", "mongoid_8", "mongoid_9"]
mongodb: ["3.6", "4.0", "4.2", "4.3", "4.4", "5.0", "6.0", "7.0"]
exclude:
# Exclude incompatible combinations
- { ruby: "2.6", gemfile: "mongoid_9" }
- { ruby: "2.6", gemfile: "mongoid_7", mongodb: "4.0" }
- { ruby: "2.6", gemfile: "mongoid_7", mongodb: "4.2" }
- { ruby: "2.6", gemfile: "mongoid_7", mongodb: "4.4" }
- { ruby: "2.6", gemfile: "mongoid_7", mongodb: "5.0" }
- { ruby: "2.6", gemfile: "mongoid_7", mongodb: "6.0" }
- { ruby: "2.6", gemfile: "mongoid_7", mongodb: "7.0" }
- { ruby: "2.6", gemfile: "mongoid_8", mongodb: "4.0" }
- { ruby: "2.6", gemfile: "mongoid_8", mongodb: "4.2" }
- { ruby: "2.6", gemfile: "mongoid_8", mongodb: "4.4" }
- { ruby: "2.6", gemfile: "mongoid_8", mongodb: "5.0" }
- { ruby: "2.6", gemfile: "mongoid_8", mongodb: "6.0" }
- { ruby: "2.6", gemfile: "mongoid_8", mongodb: "7.0" }
- { ruby: "3.1", gemfile: "mongoid_3" }
- { ruby: "3.1", gemfile: "mongoid_4" }
- { ruby: "3.1", gemfile: "mongoid_5" }
steps:
- name: Set up MongoDB ${{ matrix.entry.mongodb }}
- name: Set up MongoDB ${{ matrix.mongodb }}
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.entry.mongodb }}
mongodb-version: ${{ matrix.mongodb }}
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.entry.ruby }}
ruby-version: ${{ matrix.ruby }}
bundler: '2'
bundler-cache: true
- name: Run tests
Expand Down
19 changes: 0 additions & 19 deletions gemfiles/mongoid_head.gemfile

This file was deleted.

Loading