2020-12-04 09:10:11 +01:00
|
|
|
---
|
|
|
|
name: ci
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
|
|
|
pull_request:
|
|
|
|
branches: [master]
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
|
|
- cron: '35 4 * * 4' # weekly on thursday morning
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
ruby-version:
|
|
|
|
- '2.5'
|
|
|
|
- '2.6'
|
|
|
|
- '2.7'
|
2020-12-25 17:52:10 +01:00
|
|
|
- '3.0'
|
2020-12-04 09:10:11 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Ruby ${{ matrix.ruby-version }}
|
|
|
|
uses: ruby/setup-ruby@v1
|
|
|
|
with:
|
|
|
|
ruby-version: ${{ matrix.ruby-version }}
|
2020-12-26 15:07:31 +01:00
|
|
|
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
|
|
|
- name: Lint and Test
|
2020-12-04 09:10:11 +01:00
|
|
|
run: |
|
|
|
|
bundle exec rake ci
|