Add worflow_dispatch and locks in bundler version #90
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
- 'v**' | |
# Allows workflow to be manually run from Actions tab | |
workflow_dispatch: | |
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 -v 2.4.22 && 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: [16.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 |