Skip to content

Criterion::Location: Extract MAX_DISTANCE as constant #206

Criterion::Location: Extract MAX_DISTANCE as constant

Criterion::Location: Extract MAX_DISTANCE as constant #206

Workflow file for this run

name: CI
on: [ push ]
jobs:
standard:
name: Standard
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Run Standard
run: bundle exec standardrb
test:
name: Test
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15.3
ports: ["5432:5432"]
env:
POSTGRES_HOST_AUTH_METHOD: trust
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Install system dependencies
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get update -yqq
sudo apt-get install -yqq libvips
- name: Run tests
run: bundle exec rails db:create test:all
env:
RAILS_ENV: test
DATABASE_URL: postgresql://[email protected]:5432