Bump puma from 3.12.6 to 5.6.7 #54
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: Ruby Workflow | |
on: [pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:11 | |
ports: | |
- 5432:5432 | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7.2 | |
- name: Install dependent libraries | |
run: sudo apt-get install libpq-dev | |
- name: Bundle install | |
run: | | |
gem install bundler -v 2.1.4 | |
bundle install --jobs 4 --retry 3 | |
- name: Setup Database | |
run: | | |
cp config/database.yml.github-actions config/database.yml | |
bundle exec rake db:create | |
bundle exec rake db:schema:load | |
env: | |
RAILS_ENV: test | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
- name: Run RSpec | |
run: COVERAGE=true bundle exec rspec --require rails_helper | |
env: | |
RAILS_ENV: test | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
CATS_API_BASE_URL: https://api.thecatapi.com/v1 | |
CATS_API_KEY: ${{ secrets.CATS_API_KEY }} | |