diff options
| author | Young-Flash <dongyang@apache.org> | 2024-02-01 21:07:50 +0800 |
|---|---|---|
| committer | Young-Flash <dongyang@apache.org> | 2024-02-01 21:07:50 +0800 |
| commit | b0be2967cc98659487b728e5d168a8bbecd7b37a (patch) | |
| tree | 8f8c4ce8f8c57468aec848c1cd6b5b7782e5410a | |
| parent | 36cb5187918e84e3ab57220aed1a73b5caed3537 (diff) | |
| download | rust-b0be2967cc98659487b728e5d168a8bbecd7b37a.tar.gz rust-b0be2967cc98659487b728e5d168a8bbecd7b37a.zip | |
internal: add typos CI check
| -rw-r--r-- | .github/workflows/ci.yaml | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b5c5ff04738..da616277047 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -207,11 +207,24 @@ jobs: working-directory: ./editors/code if: needs.changes.outputs.typescript == 'true' + typos-check: + name: Typos Check + runs-on: ubuntu-latest + timeout-minutes: 10 + env: + FORCE_COLOR: 1 + steps: + - uses: actions/checkout@v4 + - run: curl -LsSf https://github.com/crate-ci/typos/releases/download/v1.17.2/typos-v1.17.2-x86_64-unknown-linux-musl.tar.gz | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin + + - name: do typos check with typos-cli + run: typos + end-success: name: bors build finished if: github.event.pusher.name == 'bors' && success() runs-on: ubuntu-latest - needs: [rust, rust-cross, typescript] + needs: [rust, rust-cross, typescript, typos-check] steps: - name: Mark the job as successful run: exit 0 @@ -220,7 +233,7 @@ jobs: name: bors build finished if: github.event.pusher.name == 'bors' && !success() runs-on: ubuntu-latest - needs: [rust, rust-cross, typescript] + needs: [rust, rust-cross, typescript, typos-check] steps: - name: Mark the job as a failure run: exit 1 |
