Skip to content

Bump rubocop-rails from 2.20.2 to 2.21.1 #67

Bump rubocop-rails from 2.20.2 to 2.21.1

Bump rubocop-rails from 2.20.2 to 2.21.1 #67

Workflow file for this run

name: CI
on: [push]
jobs:
linters:
name: Linters
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Ruby and install gems
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Run linters
run: |
bin/rake rubocop
tests:
name: Tests
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15-alpine
env:
POSTGRES_USER: myapp
POSTGRES_DB: myapp_test
POSTGRES_PASSWORD: password
ports: ["5432:5432"]
steps:
- name: Install libvips
run: sudo apt-get install -y libvips
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Ruby and install gems
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Setup test database
env:
RAILS_ENV: test
PGHOST: localhost
PGUSER: myapp
PGPASSWORD: password
run: |
bin/rails db:setup
- name: Run tests
env:
RAILS_ENV: test
PGHOST: localhost
PGUSER: myapp
PGPASSWORD: password
run: bin/rake test:all