From 84e2d2545228a1c44fdfb7a0b02ba187e1d9b6ba Mon Sep 17 00:00:00 2001 From: Lucas Garron Date: Wed, 5 Jun 2024 02:11:31 -0700 Subject: [PATCH] Add `check-readme-cli-help` and test in CI. --- .github/workflows/test.yml | 2 ++ Makefile | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 26051f6..ec3fbd2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,9 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v1 - name: Install ImageMagick run: env HOMEBREW_NO_AUTO_UPDATE=1 brew install imagemagick - name: make test run: make test + - run: make check-readme-cli-help diff --git a/Makefile b/Makefile index 11c85e8..fd0518b 100644 --- a/Makefile +++ b/Makefile @@ -33,3 +33,8 @@ clean: .PHONY: readme-cli-help readme-cli-help: bun x readme-cli-help "cargo run -- --help" + + +.PHONY: check-readme-cli-help +check-readme-cli-help: + bun x readme-cli-help --check-only "cargo run -- --help"