notes/.github/workflows/ci.yml

45 lines
1.2 KiB
YAML
Raw Normal View History

2020-04-24 02:55:09 +00:00
on: [pull_request]
name: CI
jobs:
2020-04-23 20:12:44 +00:00
jekyll-latest:
name: Build Jekyll site (latest)
runs-on: ubuntu-latest
steps:
2020-05-21 17:56:06 +00:00
- uses: actions/checkout@v2
- name: Build the site in the jekyll/builder container
run: |
docker run --rm \
--volume="${{ github.workspace }}:/srv/jekyll" \
2020-06-23 15:56:15 +00:00
jekyll/builder:latest /bin/bash -c "gem install bundler && chmod -R 777 /srv/jekyll && bundle install && bundle exec jekyll build && bundle exec rake search:init"
2020-04-23 20:16:43 +00:00
jekyll-3-8-5:
2020-04-23 20:12:44 +00:00
name: Build Jekyll site (v3.8.5)
2020-04-23 20:01:12 +00:00
runs-on: ubuntu-latest
steps:
2020-05-21 17:56:06 +00:00
- uses: actions/checkout@v2
2020-04-23 20:01:12 +00:00
- name: Build the site in the jekyll/builder container
run: |
docker run --rm \
--volume="${{ github.workspace }}:/srv/jekyll" \
2020-06-23 15:56:15 +00:00
jekyll/builder:3.8.5 /bin/bash -c "gem install bundler && chmod -R 777 /srv/jekyll && bundle install && bundle exec jekyll build && bundle exec rake search:init"
2020-04-23 20:16:43 +00:00
2020-04-24 14:57:20 +00:00
assets:
2020-06-25 18:23:27 +00:00
name: Test CSS and JS
runs-on: ubuntu-latest
2020-04-24 04:20:41 +00:00
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
2020-04-24 04:20:41 +00:00
node-version: '12.x'
2020-04-24 04:11:14 +00:00
- run: npm install
2020-04-24 14:57:20 +00:00
- run: npm test