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