Skip to content

Bump rails from 7.0.8 to 7.1.2 #1893

Bump rails from 7.0.8 to 7.1.2

Bump rails from 7.0.8 to 7.1.2 #1893

Workflow file for this run

name: test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
ports:
- 5432:5432
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis:
image: redis
ports:
- 6379:6379
options: --entrypoint redis-server
chrome:
image: selenium/standalone-chrome
ports:
- 4444:4444
container:
image: ruby:3.0-alpine
steps:
- uses: actions/checkout@v2
- name: Build and run tests
env:
CHROME_HOSTNAME: chrome
DATABASE_URL: postgres://postgres:postgres@postgres:5432/test
REDIS_URL: redis://redis:6379/0
RAILS_ENV: test
run: |
ruby -v
apk --update add build-base git file less postgresql-dev nodejs tzdata curl rust cargo
gem install bundler
bundle install -j $(nproc) --path vendor
bundle exec rails db:create
bundle exec rails db:migrate
bundle exec rails db:test:prepare
TEST_HOST="$(hostname -i)" bundle exec rspec