Skip to content

build(deps-dev): update factory_bot requirement from ~> 6.3.0 to ~> 6.4.1 #89

build(deps-dev): update factory_bot requirement from ~> 6.3.0 to ~> 6.4.1

build(deps-dev): update factory_bot requirement from ~> 6.3.0 to ~> 6.4.1 #89

Workflow file for this run

name: Build
on:
workflow_dispatch:
push:
branches:
- dev
pull_request:
branches:
- '*'
paths-ignore:
- '**.md'
jobs:
Linting:
if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true
- name: Run Install
run: |
sudo apt-get -yqq install libpq-dev
gem update --system --no-document
gem install rake
gem install bundler
bundle install
- name: Run Linter (rubocop)
run: |
bundle exec rubocop --parallel --fail-level warning --display-only-fail-level-offenses --format json -o report.json
Testing:
if: ${{ github.actor != 'dependabot[bot]' }}
name: ${{ matrix.ruby }}
runs-on: ubuntu-latest
env:
COVERAGE_RUBY_VERSION: 2.7
BUNDLE_PATH: vendor/bundle
strategy:
fail-fast: false
matrix:
ruby:
- 2.7
- 3.0
- 3.1
- 3.2
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Update rubygems
run: |
gem update --system --no-document
- name: Restore cache
uses: actions/cache@v2
with:
path: ${{ env.BUNDLE_PATH }}
key: ruby-${{ matrix.ruby }}-gems-${{ hashFiles('cnab240_bancoabc.gemspec') }}
restore-keys: |
ruby-${{ matrix.ruby }}-gems-
- name: Prepare environment
run: |
sudo apt-get -y install libsqlite3-dev libxslt1-dev
- name: Install dependencies
run: |
bundle check || bundle install --full-index --jobs 6 --retry 3
- name: Run RSpec
run: bundle exec rspec