upgrades timecop to support Ruby 3.1.4 #81
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: Tests | |
on: push | |
env: | |
SHA: ${{ github.sha }} | |
BRANCH: ${{ github.ref }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Ruby 2.5.1 | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.5.1 | |
- name: Cache Gems | |
uses: actions/cache@v1 | |
with: | |
path: vendor/bundle | |
key: ${{ runner.os }}-resource_registry-${{ hashFiles('**/Gemfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-resource_registry-${{ hashFiles('**/Gemfile.lock') }} | |
- name: Install Gems | |
run: | | |
gem update --system | |
gem install bundler -v '2.0.2' | |
bundle config path vendor/bundle | |
bundle install --jobs 4 --retry 3 | |
- name: Run RSpec | |
run: | | |
bundle exec rspec | |
- name: Run Rubocop | |
run: | | |
bundle exec rubocop |