Skip to content

Commit

Permalink
chore: lint workflow change
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe committed Aug 30, 2024
1 parent 8c979d5 commit dd33e79
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fmt:

.PHONY: fmt-check
fmt-check:
npx prettier --check "**/*.md"
npx prettier --check --log-level=debug "**/*.md"

.PHONY:
sync:
Expand Down
2 changes: 1 addition & 1 deletion canary-checker/docs/windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dd33e79

Please sign in to comment.