Skip to content

Use Rails 7.1

Use Rails 7.1 #10

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [ for-taruntarun ]
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:14-alpine
env:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
options: >-
--health-cmd pg_isready
--health-interval 10ms
--health-timeout 3s
--health-retries 50
ports:
- 5432:5432
redis:
image: redis
ports:
- 6379:6379
options: --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Install packages
run: sudo apt-get update && sudo apt-get install --no-install-recommends -y google-chrome-stable curl libjemalloc2 libvips sqlite3
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: .ruby-version
bundler-cache: true
- name: Generate actor signature key
run: bin/rails keygen
- name: Run tests
env:
RAILS_ENV: test
DB_HOST: localhost
DB_USER: postgres
DB_PASS: postgres
REDIS_URL: redis://localhost:6379/0
DOMAIN: example.com
run: |
bin/rails db:test:prepare
bundle exec rspec