Bump rails from 6.0.3.3 to 7.1.3.2 #111
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: Test | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:11.6-alpine | |
env: | |
POSTGRES_PASSWORD: password | |
ports: | |
- 5432:5432 | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install Ruby version specified in `.ruby-version` | |
uses: ruby/setup-ruby@v1 | |
with: | |
working-directory: './spec/dummy-app' | |
- name: Install required apt packages | |
run: | | |
sudo apt-get -y install libpq-dev | |
- name: Setup cache key and directory for gems cache | |
uses: actions/cache@v1 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gem-use-ruby-${{ hashFiles('**/Gemfile.lock') }} | |
- name: Bundle install | |
run: | | |
bundle config path vendor/bundle | |
cd spec/dummy-app/ | |
bundle install --jobs 4 --retry 3 | |
- name: Rails test | |
run: | | |
cd spec/dummy-app/ | |
bundle exec rails db:setup | |
bundle exec rspec |