Repository navigation
Release Candidate: 8.1.13 (#6174) #4672
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This file was auto-generated by .evergreen/make-github-actions | |
| # at 2021-09-07T16:15:13Z | |
| --- | |
| name: Run Mongoid Tests | |
| 'on': | |
| - push | |
| - pull_request | |
| jobs: | |
| build: | |
| # skip github workflows on this branch; we'll rely solely on | |
| # evergreen for CI runs | |
| if: false | |
| name: "${{matrix.ruby}} db:${{matrix.mongodb}} | |
| rails:${{matrix.rails}} fle:${{matrix.fle}} ${{matrix.topology}}" | |
| env: | |
| CI: true | |
| TESTOPTS: "-v" | |
| BUNDLE_GEMFILE: "${{ matrix.rails == '' && 'Gemfile' || format('gemfiles/rails-{0}.gemfile', matrix.rails) }}" | |
| runs-on: ubuntu-22.04 | |
| continue-on-error: false | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ruby: [ "3.2" ] | |
| mongodb: [ "7.0" ] | |
| rails: [ ~, "7.0" ] | |
| fle: [ ~, "helper" ] | |
| topology: [ replica_set, sharded_cluster ] | |
| steps: | |
| - name: repo checkout | |
| uses: actions/checkout@v2 | |
| with: | |
| submodules: recursive | |
| # the default python 3.8 doesn't cut it, and causes mongo-orchestration | |
| # to fail in mongodb-labs/drivers-evergreen-tools. | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.13' | |
| - id: start-mongodb | |
| name: start mongodb | |
| uses: mongodb-labs/drivers-evergreen-tools@master | |
| with: | |
| version: "${{matrix.mongodb}}" | |
| topology: "${{matrix.topology}}" | |
| - name: load ruby | |
| uses: ruby/setup-ruby@v1 | |
| env: | |
| FLE: "${{matrix.fle}}" | |
| BUNDLE_GEMFILE: "${{env.BUNDLE_GEMFILE}}" | |
| with: | |
| ruby-version: "${{matrix.ruby}}" | |
| bundler: 2 | |
| - name: Change permissions | |
| run: chmod -R o-w /opt/hostedtoolcache/Ruby | |
| - name: bundle | |
| run: bundle install --jobs 4 --retry 3 | |
| env: | |
| FLE: "${{matrix.fle}}" | |
| BUNDLE_GEMFILE: "${{env.BUNDLE_GEMFILE}}" | |
| - name: test | |
| timeout-minutes: 60 | |
| continue-on-error: "${{matrix.experimental}}" | |
| run: bundle exec rake ci | |
| env: | |
| BUNDLE_GEMFILE: "${{env.BUNDLE_GEMFILE}}" | |
| FLE: "${{matrix.fle}}" | |
| MONGODB_URI: "${{ steps.start-mongodb.outputs.cluster-uri }}" |