Release 4.2.1 : Mat 7986 upgrading mongoose dependency #180
Workflow file for this run
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_models_3_x | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby-version: [3.0] | |
mongodb-version: [4.2, 4.4] | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Ruby ${{ matrix.ruby-version }} | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
bundler: 2.3.17 | |
- name: Install dependencies | |
run: bundle install | |
- name: Start MongoDB | |
uses: supercharge/mongodb-github-action@1.10.0 | |
with: | |
mongodb-version: ${{ matrix.mongodb-version }} | |
- name: Run audit | |
run: | | |
bundle exec bundle-audit check --update | |
bundle exec bundle-audit check | |
- name: Run rake | |
run: bundle exec rake | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
file: coverage/.resultset.json | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Run rubocop | |
run: bundle exec rubocop | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install Yarn | |
run: npm install -g yarn | |
- name: Run yarn | |
run: | | |
yarn install | |
yarn run lint | |
yarn run test | |
npm audit --audit-level=moderate | |
- name: Run validation | |
run: | | |
./bin/validate_dist.sh | |
./bin/validate_browser.sh |