Skip to content

CI

CI #1360

Workflow file for this run

name: CI
env:
DATABASE_URL: "postgres://postgres:postgres@127.0.0.1/created_rails_app_development"
on:
pull_request:
branches:
- 'main'
push:
branches:
- 'main'
- 'rails-7'
schedule:
- cron: '0 0 * * *' # every day at midnight
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:latest
ports:
- 5432:5432
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
- uses: actions/checkout@v2
- uses: webfactory/ssh-agent@v0.5.3 # without this, git clone and push fails
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.1
- name: Install expect
run: |
sudo apt-get -yqq install expect
- name: Run
run: bash -ex ./create-rails-app