diff --git a/.github/workflows/typo-check.yml b/.github/workflows/typo-check.yml new file mode 100644 index 0000000..84e6eca --- /dev/null +++ b/.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 diff --git a/_typos.toml b/_typos.toml new file mode 100644 index 0000000..174e057 --- /dev/null +++ b/_typos.toml @@ -0,0 +1,2 @@ +[default] +extend-ignore-re = ["\\(\\[([A-Fa-f0-9]{7})\\]\\("] diff --git a/change/@rightcapital-php-parser-e1194da3-80ff-4c1b-87b3-5f3337489ba7.json b/change/@rightcapital-php-parser-e1194da3-80ff-4c1b-87b3-5f3337489ba7.json new file mode 100644 index 0000000..5c6a82a --- /dev/null +++ b/change/@rightcapital-php-parser-e1194da3-80ff-4c1b-87b3-5f3337489ba7.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "ci: add typo check", + "packageName": "@rightcapital/php-parser", + "email": "yilunsun11@yeah.net", + "dependentChangeType": "none" +}