diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e225959f..962ba302 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,4 +13,17 @@ jobs: with: node-version: '20.11.1' - - run: make fmt-check + - name: Run format check + run: make fmt-check + continue-on-error: true + id: fmt-check + + - name: Run formatter and show diff if check failed + if: steps.fmt-check.outcome == 'failure' + run: | + make fmt + git diff + + - name: Exit with error if format check failed + if: steps.fmt-check.outcome == 'failure' + run: exit 1 diff --git a/Makefile b/Makefile index dfed4bd6..208904cc 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ fmt: .PHONY: fmt-check fmt-check: - npx prettier --check "**/*.md" + npx prettier --check --log-level=debug "**/*.md" .PHONY: sync: diff --git a/canary-checker/docs/windows.md b/canary-checker/docs/windows.md index 97ff8f57..bfeabc13 100644 --- a/canary-checker/docs/windows.md +++ b/canary-checker/docs/windows.md @@ -20,7 +20,7 @@ To run Canary Checker on windows please ensure the following ## 2. Downloading required files -You only need the powershell script below(assuming internet connectivity), place it in the folder you wish to install Canary Checker in. +You only need the powershell script below(assuming internet connectivity). Place it in the folder you wish to install Canary Checker in. ```powershell [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12