Skip to content

Update rails to 7.1.3.4 and replace dotenv-rails with dotenv (#80) #159

Update rails to 7.1.3.4 and replace dotenv-rails with dotenv (#80)

Update rails to 7.1.3.4 and replace dotenv-rails with dotenv (#80) #159

Workflow file for this run

name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v3
- run: cp config/database.yml.docker config/database.yml
- run: cp docker-compose.yml.sample docker-compose.yml
- run: cp .env.sample .env
- run: docker compose build --build-arg RAILS_ENV=test
- run: docker compose pull
- run: docker compose run -e RAILS_ENV=test --rm app bundle config set without 'development'
- run: docker compose run -e RAILS_ENV=test --rm app bundle install
- run: docker compose run -e RAILS_ENV=test --rm app yarn install
- run: docker compose run -e RAILS_ENV=test --rm app bundle exec rake assets:precompile
- run: docker compose run -e RAILS_ENV=test --rm app bundle exec rake db:{create,migrate}
- run: docker compose run -e RAILS_ENV=test --rm app bundle exec rspec -f d