Skip to content

Bump actionpack from 7.0.5 to 7.0.5.1 #493

Bump actionpack from 7.0.5 to 7.0.5.1

Bump actionpack from 7.0.5 to 7.0.5.1 #493

Workflow file for this run

name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:11.5
ports: ["5432:5432"]
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
strategy:
matrix:
rails:
- rails_5.2
- rails_6.0
- rails_6.1
- rails_7.0
steps:
- uses: actions/checkout@v3
- name: Set up Ruby 2.7.x
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
- name: Install PostgreSQL 11 client
run: |
sudo apt-get -yqq install libpq-dev postgresql-client
- name: Cache
uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: Build and test
env:
PGHOST: localhost
PGUSER: postgres
RAILS_ENV: test
RAILS_VERSION: ${{ matrix.rails }}
run: |
export BUNDLE_GEMFILE="${GITHUB_WORKSPACE}/gemfiles/${RAILS_VERSION}.gemfile"
gem install bundler
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
bundle exec rake db:create db:schema:load test