Skip to content

Use database in visits_by_day_of_week_component instead of .each #126

Use database in visits_by_day_of_week_component instead of .each

Use database in visits_by_day_of_week_component instead of .each #126

Workflow file for this run

name: Ruby
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby:
- '3.1.1'
- '3.2.1'
- '3.2.2'
env:
RAILS_ENV: test
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Lint
run: bundle exec rake standard
- name: Create DB
run: bundle exec rails db:test:prepare
- name: Run tests
run: bundle exec rake spec