mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-04-15 23:52:23 -06:00
Node 18 has been stable for a while, so I feel comfortable making this switch; should be no downstream impact other than speed!
43 lines
996 B
YAML
43 lines
996 B
YAML
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- 'v**'
|
|
|
|
name: CI
|
|
|
|
jobs:
|
|
jekyll-build:
|
|
name: Build Jekyll site
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
jekyll-version: [3.8.5, latest]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Build the site in the jekyll/jekyll container
|
|
run: |
|
|
docker run --rm \
|
|
--volume="${{ github.workspace }}:/srv/jekyll" \
|
|
jekyll/jekyll:${{ matrix.jekyll-version }} /bin/bash -c "gem install bundler && chmod -R 777 /srv/jekyll && bundle install && bundle exec jekyll build && bundle exec rake search:init"
|
|
|
|
assets:
|
|
name: Test CSS and JS
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [18.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- run: npm install
|
|
- run: npm test
|