Skip to content

Drop global variable references #111

Drop global variable references

Drop global variable references #111

Workflow file for this run

name: Test
on: [push]
jobs:
test:
name: Test
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
rails: [70, 71, 72, 80]
ruby: [3.1, 3.2, 3.3]
experimental: [false]
exclude:
- ruby: 3.1
rails: 80
include:
- rails: head
ruby: 3.2
experimental: true
- rails: head
ruby: 3.3
experimental: true
services:
postgres:
image: postgres:14
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports: ["5432:5432"]
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- uses: actions/cache@v2
with:
path: vendor/bundle
key: bundle-use-ruby-${{ matrix.ruby }}-${{ matrix.rails }}-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
bundle-use-ruby-${{ matrix.ruby }}-${{ matrix.rails }}-
- name: Bundle install
run: |
bundle config path vendor/bundle
bundle config set --local gemfile gemfiles/activerecord-${{ matrix.rails }}.gemfile
bundle install --jobs 4 --retry 3
- name: Setup Database
env:
DATABASE_NAME: active_record_extended_test
DATABASE_URL: postgres://postgres:postgres@localhost:5432/active_record_extended_test
run: |
bundle exec rake db:setup
- name: Run tests
env:
DATABASE_NAME: active_record_extended_test
DATABASE_URL: postgres://postgres:postgres@localhost:5432/active_record_extended_test
run: bundle exec rake