Skip to content

Commit

Permalink
ci: add typo check
Browse files Browse the repository at this point in the history
- credits to @liby for this commit
  • Loading branch information
liby authored and yilun.sun committed Mar 25, 2024
1 parent a88c27f commit 1c461ed
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/typo-check.yml
@@ -0,0 +1,21 @@
name: Typo Check
on: [pull_request]

jobs:
typo-check:
runs-on: ubuntu-latest
timeout-minutes: 10
env:
FORCE_COLOR: 1
TYPOS_VERSION: v1.19.0
steps:
- name: download typos
run: curl -LsSf https://github.com/crate-ci/typos/releases/download/$TYPOS_VERSION/typos-$TYPOS_VERSION-x86_64-unknown-linux-musl.tar.gz | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin

- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: check typos
run: typos

0 comments on commit 1c461ed

Please sign in to comment.