mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-05 18:01:32 +00:00
ci: check markdown formatting via deno fmt
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I6a6a696439d249d3eb69c548013c4a5470c06688
This commit is contained in:
parent
8092a6f188
commit
132e50c1e4
1 changed files with 13 additions and 1 deletions
14
.github/workflows/check.yml
vendored
14
.github/workflows/check.yml
vendored
|
@ -39,6 +39,17 @@ jobs:
|
|||
- name: Check formatting via Alejandra
|
||||
run: nix run nixpkgs#alejandra -- --check . --exclude npins
|
||||
|
||||
- name: Check formatting via Deno
|
||||
run: nix run nixpkgs#deno -- fmt --check --ext md **/*.md
|
||||
|
||||
- if: ${{ failure() }}
|
||||
shell: bash
|
||||
run: |
|
||||
echo "::error:: Current codebase contains formatting errors that were caught by the CI!"
|
||||
echo "Please ensure that all Nix code is formatted with Alejandra, and Markdown with `deno fmt"
|
||||
echo "[skip ci] label may be added to the PR title if this is a one-time issue and is safe to ignore"
|
||||
exit 1
|
||||
|
||||
check-typos:
|
||||
name: "Check source tree for typos"
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -142,7 +153,8 @@ jobs:
|
|||
- name: Checking Editorconfig conformance
|
||||
shell: bash
|
||||
run: |
|
||||
< "$HOME/changed_files" nix-shell -p editorconfig-checker --run 'xargs -r editorconfig-checker -disable-indent-size'
|
||||
< "$HOME/changed_files" nix-shell -p editorconfig-checker \
|
||||
--run 'xargs -r editorconfig-checker -disable-indent-size --exclude flake.lock'
|
||||
|
||||
- if: ${{ failure() }}
|
||||
shell: bash
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue