mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2026-03-22 02:48:15 +00:00
54 lines
982 B
YAML
54 lines
982 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- "hotfix/*"
|
|
paths-ignore:
|
|
- ".github/**"
|
|
- "!.github/workflows/ci.yml"
|
|
- .gitignore
|
|
- "docs/**"
|
|
- README.md
|
|
- LICENSE
|
|
pull_request:
|
|
paths-ignore:
|
|
- ".github/**"
|
|
- "!.github/workflows/ci.yml"
|
|
- .gitignore
|
|
- "docs/**"
|
|
- README.md
|
|
- LICENSE
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
ruby: ["3.3", "3.4"]
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0 # for posts's lastmod
|
|
|
|
- name: Setup Ruby
|
|
uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: ${{ matrix.ruby }}
|
|
bundler-cache: true
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: lts/*
|
|
|
|
- name: Build Assets
|
|
run: npm i && npm run build
|
|
|
|
- name: Test Site
|
|
run: bash tools/test.sh
|