Skip to content

Bump the bundler group group with 3 updates #73

Bump the bundler group group with 3 updates

Bump the bundler group group with 3 updates #73

Workflow file for this run

# https://docs.knapsackpro.com/2021/how-to-load-ruby-gems-from-cache-on-github-actions
name: Rails
on: [push]
jobs:
rspec:
name: RSpec
runs-on: ubuntu-latest
services:
postgres:
image: postgres:10.8
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ""
POSTGRES_DB: postgres
ports:
- 5432:5432
# needed because the postgres container does not provide a healthcheck
# tmpfs makes DB faster by using RAM
options: >-
--mount type=tmpfs,destination=/var/lib/postgresql/data
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
RAILS_ENV: test
PGHOST: localhost
PGUSER: postgres
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
- name: Create DB
run: bundle exec rake db:prepare
- name: Precompile assets
run: bundle exec rails assets:precompile
- name: Run tests
run: bundle exec rspec