Mongoid8 #32
This file contains 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
name: Continuous Integration | |
on: | |
pull_request: | |
branches: [master, cqm_parsers_3_x, bonnie_version] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby-version: [3.2] | |
mongodb-version: [4.2, 4.4] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Ruby ${{ matrix.ruby-version }} | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
- name: Install dependencies | |
run: bundle install | |
- name: Start MongoDB | |
uses: supercharge/[email protected] | |
with: | |
mongodb-version: ${{ matrix.mongodb-version }} | |
- name: Run audit | |
run: bundle exec bundle-audit check --update | |
- name: Run tests | |
run: bundle exec rake test | |
- name: Run rubocop | |
run: rubocop |