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
Yilun-Sun authored and rainx committed Mar 26, 2024
1 parent a96df41 commit a82c8c2
Show file tree
Hide file tree
Showing 3 changed files with 30 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
2 changes: 2 additions & 0 deletions _typos.toml
@@ -0,0 +1,2 @@
[default]
extend-ignore-re = ["\\(\\[([A-Fa-f0-9]{7})\\]\\("]
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "ci: add typo check",
"packageName": "@rightcapital/php-parser",
"email": "yilunsun11@yeah.net",
"dependentChangeType": "none"
}

0 comments on commit a82c8c2

Please sign in to comment.