18808851a9
Ruby 2.x has passed its end of life and is now unsupported.
41 lines
754 B
YAML
41 lines
754 B
YAML
name: "CI"
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- "production"
|
|
- "docs"
|
|
paths-ignore:
|
|
- ".github/**"
|
|
- "!.github/workflows/ci.yml"
|
|
- ".gitignore"
|
|
- "docs/**"
|
|
- "README.md"
|
|
- "LICENSE"
|
|
pull_request:
|
|
paths:
|
|
- "**"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0 # for posts's lastmod
|
|
|
|
- name: Setup Ruby
|
|
uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: 3
|
|
bundler-cache: true
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v4
|
|
|
|
- name: Build Assets
|
|
run: npm i && npm run build
|
|
|
|
- name: Test Site
|
|
run: bash tools/test
|