lint: update carrierwave-base64 to last version #244
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: CI | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:11 | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_DB: pia_test | |
POSTGRES_PASSWORD: postgres | |
ports: ['5432:5432'] | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup Ruby | |
uses: actions/setup-ruby@v1 | |
with: | |
ruby-version: 3.1.x | |
- name: Build and run tests | |
env: | |
DATABASE_URL: postgres://postgres:postgres@localhost:5432/pia_test | |
RAILS_ENV: test | |
run: | | |
sudo apt-get -yqq install libpq-dev | |
gem install bundler | |
bundle install --jobs 4 --retry 3 | |
bin/rails db:prepare | |
bin/rails test | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Ruby and gems | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.1.4 | |
bundler-cache: true | |
- name: Bundle binstubs | |
run: bundle install --binstubs | |
- name: Security audit dependencies | |
run: bin/bundler-audit --update | |
- name: Security audit application code | |
run: bin/brakeman -q -w3 | |
- name: Lint Ruby files | |
run: bundle exec rubocop --parallel |