Skip to content
Snippets Groups Projects
ci.yml 996 B
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