Skip to content

add ltree_scope entry to readme (#45) #42

add ltree_scope entry to readme (#45)

add ltree_scope entry to readme (#45) #42

Workflow file for this run

name: Gem Tests
on:
pull_request:
push:
branches:
- master
jobs:
run:
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: pg_ltree_test
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
strategy:
fail-fast: false
matrix:
ruby:
- '3.1'
- '3.0'
- '2.7'
- '2.5'
runs-on: ubuntu-latest
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Cache gems
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-${{ matrix.ruby }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.ruby }}-gem-
- name: Install dependencies
run: |
gem update --system
gem install bundler
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
bundle exec appraisal install
- name: Setup DB
run: cp spec/database.yml.sample spec/database.yml
- name: Run tests
run: bundle exec appraisal rake spec