Skip to content

Commit 83e5785

Browse files
authored
ci: Add spellcheck to CI
In order to ensure that typos are not introduced in future commits, this commit adds a spellchecker to CI. See also: rust-windowing/winit#3557 Signed-off-by: John Nunley <[email protected]>
1 parent 41f014d commit 83e5785

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/ci.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,25 @@ env:
1313

1414
jobs:
1515
fmt:
16-
name: Check Formatting
16+
name: Tidy Code
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v2
2020
- uses: hecrj/setup-rust-action@v1
2121
with:
2222
rust-version: stable
2323
components: rustfmt
24+
- uses: taiki-e/install-action@v2
25+
with:
26+
tool: typos-cli
2427
- name: Check Formatting
2528
run: cargo fmt --all -- --check
29+
- name: Run Typos
30+
run: typos
2631

2732
tests:
2833
name: Tests
34+
needs: fmt
2935
# `raw-window-handle` only has `cfg` guards for Android, so we just run Ubuntu
3036
# and manually test Android
3137
runs-on: ubuntu-latest

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ pub enum RawWindowHandle {
159159
///
160160
/// ## Availability Hints
161161
/// This variant is present regardless of windowing backend and likely to be used with
162-
/// EGL_MESA_platfrom_gbm or EGL_KHR_platfrom_gbm.
162+
/// EGL_MESA_platform_gbm or EGL_KHR_platform_gbm.
163163
Gbm(GbmWindowHandle),
164164
/// A raw window handle for Win32.
165165
///

0 commit comments

Comments
 (0)