Skip to content

Bump yajl-ruby from 1.3.1 to 1.4.3 #221

Bump yajl-ruby from 1.3.1 to 1.4.3

Bump yajl-ruby from 1.3.1 to 1.4.3 #221

Workflow file for this run

name: CI
on:
push:
branches:
- master
- develop
tags:
- '*'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby:
- 2.7
postgres_image:
- postgis/postgis:12-3.3
services:
postgres:
image: ${{ matrix.postgres_image }}
env:
POSTGRES_PASSWORD: bety
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Restore cache
uses: actions/cache@v4
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ matrix.ruby}}-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install libraries
run: |
sudo apt-get update
sudo apt-get -y install libgeos-dev
- name: Install gems
run: |
gem install bundler -v 1.17.3
bundle config path vendor/bundle
bundle config without 'javascript_testing'
bundle config with 'docker'
bundle config
bundle install --jobs 4 --retry 3
- name: Build and test with Rake
env:
RAILS_ENV: test
POSTGRES_PASSWORD: bety
PGPASSWORD: bety
run: |
cp config/database.yml.gh config/database.yml
psql -h localhost -U postgres -c "CREATE USER bety WITH SUPERUSER CREATEDB PASSWORD 'bety'";
psql -h localhost -U postgres -c "DROP DATABASE IF EXISTS test;"
psql -h localhost -U postgres -c "CREATE DATABASE test WITH OWNER bety;"
psql -h localhost -U bety -d test -c "CREATE EXTENSION postgis;"
#bundle exec rails db:create
# bundle exec rails db:migrate
bundle exec rake db:structure:load
bundle exec rake db:fixtures:load
mkdir -p spec/tmp
bundle exec rails test
bundle exec rspec --tag ~js