Skip to content

Add prettier and improve CI #1

Add prettier and improve CI

Add prettier and improve CI #1

Workflow file for this run

on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v2
with:
mdbook-version: "0.4.37"
- run: mdbook build
# Report when we become incompatible with latest mdbook, but don't fail the workflow
build-mdbook-latest:
name: Build
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v2
with:
mdbook-version: 'latest'
- run: mdbook build
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Prettier Markdown
run: npx prettier --write --print-width 80 --prose-wrap always "**/*.md"
- name: Prettier yaml
run: npx prettier --write "**/*.yml"