2022-03-04 15:58:42 +01:00
|
|
|
name: 'CI'
|
2020-01-21 20:05:06 +01:00
|
|
|
on:
|
|
|
|
push:
|
2020-08-20 19:40:56 +02:00
|
|
|
branches-ignore:
|
2022-12-04 17:30:37 +01:00
|
|
|
- 'production'
|
2022-02-03 23:46:06 +01:00
|
|
|
- 'docs'
|
2020-01-21 20:05:06 +01:00
|
|
|
paths-ignore:
|
2020-03-01 18:03:58 +01:00
|
|
|
- '.github/**'
|
2020-06-05 21:19:24 +02:00
|
|
|
- '!.github/workflows/ci.yml'
|
2020-03-01 18:03:58 +01:00
|
|
|
- '.gitignore'
|
|
|
|
- 'README.md'
|
|
|
|
- 'LICENSE'
|
2020-01-21 20:05:06 +01:00
|
|
|
pull_request:
|
|
|
|
paths:
|
2020-07-29 20:36:47 +02:00
|
|
|
- '**'
|
2020-01-21 20:05:06 +01:00
|
|
|
|
|
|
|
jobs:
|
2022-03-04 15:58:42 +01:00
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2022-08-13 23:47:30 +02:00
|
|
|
|
2020-01-21 20:05:06 +01:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-12-27 14:43:43 +01:00
|
|
|
ruby: ['2.7', '3.0', '3.1']
|
2022-08-13 23:47:30 +02:00
|
|
|
|
2020-11-22 18:26:29 +01:00
|
|
|
steps:
|
2020-01-21 20:05:06 +01:00
|
|
|
- name: Checkout
|
2022-08-13 23:47:30 +02:00
|
|
|
uses: actions/checkout@v3
|
2020-04-09 21:15:51 +02:00
|
|
|
with:
|
2020-11-22 18:26:29 +01:00
|
|
|
fetch-depth: 0 # for posts's lastmod
|
2022-08-13 23:47:30 +02:00
|
|
|
|
2020-11-22 18:26:29 +01:00
|
|
|
- name: Setup Ruby
|
2021-03-31 22:17:18 +02:00
|
|
|
uses: ruby/setup-ruby@v1
|
2020-11-22 18:26:29 +01:00
|
|
|
with:
|
2022-03-04 15:58:42 +01:00
|
|
|
ruby-version: ${{ matrix.ruby }}
|
2021-03-31 22:17:18 +02:00
|
|
|
bundler-cache: true
|
2022-08-13 23:47:30 +02:00
|
|
|
|
2020-01-21 20:05:06 +01:00
|
|
|
- name: Test Site
|
2022-08-13 23:47:30 +02:00
|
|
|
run: bash tools/test.sh
|