Remove garbage #284
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:15.4 | |
env: | |
POSTGRES_PASSWORD: password | |
mongo: | |
image: mongo:7.0.14 | |
redis: | |
image: redis:7.0 | |
options: --entrypoint redis-server | |
container: | |
image: ruby:3.3.5 | |
env: | |
BASE_URL: 'http://example.com' | |
DATABASE_URL: postgresql://postgres:password@postgres | |
MONGO_HOST: mongo | |
RAILS_ENV: test | |
REDIS_URL: redis://redis:6379 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-gems- | |
- name: Install dependencies | |
run: | | |
gem install bundler | |
bundle config set without 'development production' | |
bundle config set path vendor/bundle | |
bundle install --jobs 4 --retry 3 | |
- name: Setup | |
run: | | |
bin/rails db:create db:migrate | |
- name: Run specs | |
run: | | |
bundle exec rake |