Skip to content

Commit b0be296

Browse files
committed
internal: add typos CI check
1 parent 36cb518 commit b0be296

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,24 @@ jobs:
207207
working-directory: ./editors/code
208208
if: needs.changes.outputs.typescript == 'true'
209209

210+
typos-check:
211+
name: Typos Check
212+
runs-on: ubuntu-latest
213+
timeout-minutes: 10
214+
env:
215+
FORCE_COLOR: 1
216+
steps:
217+
- uses: actions/checkout@v4
218+
- 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
219+
220+
- name: do typos check with typos-cli
221+
run: typos
222+
210223
end-success:
211224
name: bors build finished
212225
if: github.event.pusher.name == 'bors' && success()
213226
runs-on: ubuntu-latest
214-
needs: [rust, rust-cross, typescript]
227+
needs: [rust, rust-cross, typescript, typos-check]
215228
steps:
216229
- name: Mark the job as successful
217230
run: exit 0
@@ -220,7 +233,7 @@ jobs:
220233
name: bors build finished
221234
if: github.event.pusher.name == 'bors' && !success()
222235
runs-on: ubuntu-latest
223-
needs: [rust, rust-cross, typescript]
236+
needs: [rust, rust-cross, typescript, typos-check]
224237
steps:
225238
- name: Mark the job as a failure
226239
run: exit 1

0 commit comments

Comments
 (0)