index : static-web-server.git

ascending towards madness

author Kian-Meng Ang <kianmeng@cpan.org> 2022-09-18 16:13:39.0 +00:00:00
committer GitHub <noreply@github.com> 2022-09-18 16:13:39.0 +00:00:00
commit
28f8818ef2428ed07ed47b2e8f0e8f4c828a575c [patch]
tree
7694acedcb47ffddeda0fccea0247b55180a8f0f
parent
303d1b4c5bcd1a2a7c2344fa000a4f37e1f625f8
download
28f8818ef2428ed07ed47b2e8f0e8f4c828a575c.tar.gz

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

Diff

 .github/workflows/config/typos.toml | 5 +++++
 .github/workflows/devel.yml         | 7 ++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)

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: