From dd33e7914a153980a8b0fb7d44204e490487df42 Mon Sep 17 00:00:00 2001 From: Aditya Thebe Date: Fri, 30 Aug 2024 20:26:40 +0545 Subject: [PATCH] chore: lint workflow change --- .github/workflows/lint.yml | 15 ++++++++++++++- Makefile | 2 +- canary-checker/docs/windows.md | 2 +- 3 files changed, 16 insertions(+), 3 deletions(-) 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