Skip to content

Test periodically against Rails Edge #1

Test periodically against Rails Edge

Test periodically against Rails Edge #1

Workflow file for this run

name: Rails Edge compatibility
# on:
# schedule:
# - cron: '30 8 * * 1'
on:
pull_request:
branches:
- master
- develop
permissions:
contents: read
jobs:
test:
name: Rails Edge compatibility
runs-on: ubuntu-latest
services:
db:
image: postgres:12
ports: ['5432:5432']
env:
POSTGRES_HOST_AUTH_METHOD: trust
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
BUNDLE_GEMFILE: gemfiles/rails_edge.gemfile
TEST_CONFIG: ./spec/config.github.yml
steps:
- uses: actions/checkout@v4
- name: Set up Database
run: |
psql -c "CREATE ROLE runner SUPERUSER LOGIN CREATEDB;" -U postgres -h localhost
psql -c "CREATE DATABASE chronomodel;" -U postgres -h localhost
psql -c "CREATE DATABASE chronomodel_railsapp;" -U postgres -h localhost
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3.0'
bundler-cache: true
- name: Run specs
run: bundle exec rake