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:
|
2020-12-25 17:52:10 +01:00
|
|
|
- '3.0'
|
2022-01-07 09:31:53 +01:00
|
|
|
- '3.1'
|
2023-01-20 14:55:36 +01:00
|
|
|
- '3.2'
|
2024-03-03 11:28:40 +01:00
|
|
|
- '3.3'
|
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
|