Skip to content

Tests

Tests #938

Workflow file for this run

name: Tests
on:
schedule:
- cron: "0 0 * * *"
pull_request:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ["2.5", "2.6", "2.7", "3.0"]
steps:
- uses: actions/checkout@v2
- name: Set up Ruby version specified in `.ruby-version`
with:
ruby-version: ${{ matrix.ruby }}
uses: eregon/use-ruby-action@master
- name: Install dependencies
run: bundle install --jobs 4 --retry 3
- name: Run tests with RSpec
run: bundle exec rspec
- name: Run Rubocop
env:
RAILS_ENV: test
run: bundle exec rubocop --config .rubocop.yml