Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use GitHub action workflow to check Markdown #55

Merged
merged 19 commits into from
Jul 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Jekyll site CI

on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1.38.0
with:
ruby-version: 2.7
- name: Cache Ruby deps
uses: actions/cache@v2
with:
path: vendor/bundle
key: ruby-deps-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
ruby-deps-
- name: Ruby deps
run: gem install json kramdown jekyll bundler
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Python deps
run: pip install pyyaml
- name: Nokogiri deps
run: sudo apt install -y pkg-config libxml2-dev libxslt-dev
- name: Site deps
run: bundle install
- name: Build site
run: bundle exec jekyll build
- name: Check all lessons
run: make lesson-check-all
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ lesson-check : lesson-fixme

## * lesson-check-all : validate lesson Markdown, checking line lengths and trailing whitespace
lesson-check-all :
@${PYTHON} bin/lesson_check.py -s . -p ${PARSER} -r _includes/links.md -l -w --permissive
@${PYTHON} bin/lesson_check.py -s . -p ${PARSER} -r _includes/links.md -l -w

## * unittest : run unit tests on checking tools
unittest :
Expand Down