Skip to content

Split filedir

Split filedir #612

Workflow file for this run

---
name: Check lesson and build for all configs
on:
pull_request:
push:
jobs:
lint_common_files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install codespell
run: |
sudo apt-get install codespell
- name: Check spelling
run: |
make spellcheck
proselint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install proselint
run: |
python3 -m pip install proselint
- name: Check prose
run: |
proselint **/*.md
- name: Check top-level Markdown syntax
uses: DavidAnson/markdownlint-cli2-action@v9
- name: Check episode Markdown syntax
uses: DavidAnson/markdownlint-cli2-action@v9
with:
globs: _episodes/*.md
- name: Check extra Markdown syntax
uses: DavidAnson/markdownlint-cli2-action@v9
with:
globs: _extras/*.md
check_lesson_and_build_default:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0.4'
bundler-cache: true
- name: Install basic requirements
run: |
# Need this library for nokogiri
sudo apt-get install libxslt1-dev
gem install bundler json kramdown kramdown-parser-gfm
bundle config set path '.vendor/bundle'
bundle config build.nokogiri --use-system-libraries
bundle install
- name: "Check lesson for warnings"
run: |
make lesson-check-all
- name: "Check lesson for errors"
run: |
make lesson-check
- name: "Check build"
run: |
make --always-make site
build-specific-sites:
runs-on: ubuntu-latest
strategy:
matrix:
HPC_JEKYLL_CONFIG:
- NeSI_Mahuika_slurm
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0.4'
bundler-cache: true
- name: Install basic requirements
run: |
# Need this library for nokogiri
sudo apt-get install libxslt1-dev
gem install bundler
bundle config set path '.vendor/bundle'
bundle config build.nokogiri --use-system-libraries
bundle install
- name: Check build ${{matrix.HPC_JEKYLL_CONFIG}}
run: |
make --always-make site HPC_JEKYLL_CONFIG=_includes/snippets_library/${{matrix.HPC_JEKYLL_CONFIG}}/_config_options.yml
- name: Lint snippet markdown
uses: DavidAnson/markdownlint-cli2-action@v9
with:
globs: _includes/snippets_library/${{matrix.HPC_JEKYLL_CONFIG}}/**/*.snip