Skip to content

CI

CI #24

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
ruby: ['2.7', '3.0']
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Caching dependencies
uses: actions/cache@v1
with:
path: vendor/bundle
key: bundle-use-ruby-${{ runner.os }}-${{ matrix.ruby }}-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
bundle-use-ruby-${{ runner.os }}-${{ matrix.ruby }}-
- name: Bundle Install
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Run Tests
run: bundle exec rake test