internal: add typos CI check
This commit is contained in:
parent
36cb518791
commit
b0be2967cc
17
.github/workflows/ci.yaml
vendored
17
.github/workflows/ci.yaml
vendored
@ -207,11 +207,24 @@ jobs:
|
|||||||
working-directory: ./editors/code
|
working-directory: ./editors/code
|
||||||
if: needs.changes.outputs.typescript == 'true'
|
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:
|
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]
|
needs: [rust, rust-cross, typescript, typos-check]
|
||||||
steps:
|
steps:
|
||||||
- name: Mark the job as successful
|
- name: Mark the job as successful
|
||||||
run: exit 0
|
run: exit 0
|
||||||
@ -220,7 +233,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]
|
needs: [rust, rust-cross, typescript, typos-check]
|
||||||
steps:
|
steps:
|
||||||
- name: Mark the job as a failure
|
- name: Mark the job as a failure
|
||||||
run: exit 1
|
run: exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user