use the toolkit in the CI #37
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Checking the documentation | |
on: | |
pull_request: | |
branches: [main] | |
types: [opened, synchronize, reopened] | |
push: | |
branches: | |
- main | |
- nightly | |
jobs: | |
check-merge: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checking out repository | |
uses: actions/checkout@v3 | |
- uses: hustcer/[email protected] | |
with: | |
version: "0.87.0" | |
- name: Check the documentation | |
shell: nu {0} | |
run: | | |
nu --commands $" | |
use ($env.PWD)/toolkit.nu | |
toolkit doc | |
if not \(git status --short | lines | is-empty\) { | |
error make --unspanned { | |
msg: $'status is non-empty: \(git status --short | lines\)' | |
} | |
} | |
" |