🚨 [security] Update rails 6.1.3.2 → 6.1.7.9 (patch) #241
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: rubies-ci | |
on: [push, pull_request] | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] # macos-latest | |
ruby: ['2.7', '3.0'] # Due to https://github.com/actions/runner/issues/849, we have to use quotes | |
runs-on: ${{ matrix.os }} | |
services: | |
postgres: | |
image: postgres:12 | |
env: | |
POSTGRES_DB: qanda_test | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
ports: ["5432:5432"] | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby }} | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- name: Setup test database | |
env: | |
RAILS_ENV: test | |
PGHOST: localhost | |
PGPORT: 5432 | |
PGUSER: postgres | |
PGPASSWORD: postgres | |
run: bin/rails db:create db:migrate | |
- name: Run linters and test suite | |
run: bundle exec rake ci |