internal: update typo-check CI setting

This commit is contained in:
Young-Flash 2024-02-02 18:32:20 +08:00
parent 70d6141859
commit a52a4d9ba4

View File

@ -207,24 +207,25 @@ jobs:
working-directory: ./editors/code working-directory: ./editors/code
if: needs.changes.outputs.typescript == 'true' if: needs.changes.outputs.typescript == 'true'
typos-check: typo-check:
name: Typos Check name: Typo Check
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 10 timeout-minutes: 10
env: env:
FORCE_COLOR: 1 FORCE_COLOR: 1
TYPOS_VERSION: v1.18.0
steps: steps:
- uses: actions/checkout@v4 - name: download typos
- 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 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: do typos check with typos-cli - name: check for typos
run: typos run: typos
end-success: end-success:
name: bors build finished name: bors build finished
if: github.event.pusher.name == 'bors' && success() if: github.event.pusher.name == 'bors' && success()
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [rust, rust-cross, typescript, typos-check] needs: [rust, rust-cross, typescript, typo-check]
steps: steps:
- name: Mark the job as successful - name: Mark the job as successful
run: exit 0 run: exit 0
@ -233,7 +234,7 @@ jobs:
name: bors build finished name: bors build finished
if: github.event.pusher.name == 'bors' && !success() if: github.event.pusher.name == 'bors' && !success()
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [rust, rust-cross, typescript, typos-check] needs: [rust, rust-cross, typescript, typo-check]
steps: steps:
- name: Mark the job as a failure - name: Mark the job as a failure
run: exit 1 run: exit 1