From f6212fc1e45a60a89e7ff40a9fd35d3d11394850 Mon Sep 17 00:00:00 2001 From: Amanda-dong <159391549+Amanda-dong@users.noreply.github.com> Date: Mon, 29 Jun 2026 22:25:21 +0800 Subject: [PATCH] Add Harper workflow for grammar and style checks --- .github/workflows/harper.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/harper.yml diff --git a/.github/workflows/harper.yml b/.github/workflows/harper.yml new file mode 100644 index 0000000000..5ce5891598 --- /dev/null +++ b/.github/workflows/harper.yml @@ -0,0 +1,25 @@ +name: Harper + +on: + pull_request: + paths: + - "**/*.md" + - "**/*.mdx" + workflow_dispatch: + +jobs: + harper: + name: Grammar and Style Check + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v6 + + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + + - name: Install Harper CLI + run: cargo install harper-cli --locked + + - name: Run Harper + run: harper-cli lint docs src/pages