Skip to content

ci: run on main branch #77

ci: run on main branch

ci: run on main branch #77

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
jobs:
ci_checks:
runs-on: ubuntu-latest
strategy:
matrix:
ruby:
- 2.5.8
- 2.6.6
- 2.7.1
- 3.0.0
name: Ruby ${{ matrix.ruby }} sample
steps:
- name: Checkout this repo
uses: actions/checkout@v2
- name: Install Ruby and Bundler
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ${{ matrix.ruby }}
- name: Run rubocop
run: |
bundle exec rubocop
- name: Run tests
run: |
bundle exec rspec