1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-16 17:36:00 -05:00
notes/.github/workflows/ci.yml

45 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2020-04-23 22:55:09 -04:00
on: [pull_request]
name: CI
jobs:
2020-04-23 16:12:44 -04:00
jekyll-latest:
name: Build Jekyll site (latest)
runs-on: ubuntu-latest
steps:
2020-05-21 13:56:06 -04: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 11:56:15 -04: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 16:16:43 -04:00
jekyll-3-8-5:
2020-04-23 16:12:44 -04:00
name: Build Jekyll site (v3.8.5)
2020-04-23 16:01:12 -04:00
runs-on: ubuntu-latest
steps:
2020-05-21 13:56:06 -04:00
- uses: actions/checkout@v2
2020-04-23 16:01:12 -04:00
- name: Build the site in the jekyll/builder container
run: |
docker run --rm \
--volume="${{ github.workspace }}:/srv/jekyll" \
2020-06-23 11:56:15 -04: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 16:16:43 -04:00
2020-04-24 10:57:20 -04:00
assets:
2020-06-25 14:23:27 -04:00
name: Test CSS and JS
runs-on: ubuntu-latest
2020-04-24 00:20:41 -04:00
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
2020-04-24 00:20:41 -04:00
node-version: '12.x'
2020-04-24 00:11:14 -04:00
- run: npm install
2020-04-24 10:57:20 -04:00
- run: npm test