From 28f8818ef2428ed07ed47b2e8f0e8f4c828a575c Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Mon, 19 Sep 2022 00:13:39 +0800 Subject: [PATCH] feat: add typos job to GitHub CI workflow (#141) See: - https://github.com/crate-ci/typos - https://github.com/joseluisq/static-web-server/pull/140#issuecomment-1249272510 --- .github/workflows/config/typos.toml | 5 +++++ .github/workflows/devel.yml | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/config/typos.toml diff --git a/.github/workflows/config/typos.toml b/.github/workflows/config/typos.toml new file mode 100644 index 0000000..0217a0f --- /dev/null +++ b/.github/workflows/config/typos.toml @@ -0,0 +1,5 @@ +[default.extend-words] +Compressable = "Compressable" +ba = "ba" +flate = "flate" +prefered = "prefered" diff --git a/.github/workflows/devel.yml b/.github/workflows/devel.yml index c321f23..a80696f 100644 --- a/.github/workflows/devel.yml +++ b/.github/workflows/devel.yml @@ -45,7 +45,7 @@ jobs: - windows-pc-gnu # - windows-msvc-arm64 include: - # Specific Rust channels + # Specific Rust channels - build: pinned os: ubuntu-20.04 rust: 1.56.1 @@ -165,6 +165,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 + - name: Check typos + uses: crate-ci/typos@master + with: + config: ./.github/workflows/config/typos.toml + - name: Install stable toolchain uses: dtolnay/rust-toolchain@stable with: -- libgit2 1.7.2