mirror of
https://github.com/peter-tanner/peter-tanner.github.io.git
synced 2024-12-01 04:20:17 +08:00
45 lines
831 B
YAML
45 lines
831 B
YAML
|
name: "CI"
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- "master"
|
||
|
paths-ignore:
|
||
|
- ".github/**"
|
||
|
- "!.github/workflows/ci.yml"
|
||
|
- ".gitignore"
|
||
|
- "docs/**"
|
||
|
- "README.md"
|
||
|
- "LICENSE"
|
||
|
pull_request:
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
strategy:
|
||
|
matrix:
|
||
|
ruby: ["3.1", "3.2", "3.3"]
|
||
|
|
||
|
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: ${{ matrix.ruby }}
|
||
|
bundler-cache: true
|
||
|
|
||
|
- name: Setup Node
|
||
|
uses: actions/setup-node@v4
|
||
|
with:
|
||
|
node-version: latest
|
||
|
|
||
|
- name: Build Assets
|
||
|
run: npm i && npm run build
|
||
|
|
||
|
- name: Test Site
|
||
|
run: bash tools/test
|