Use cargo to install typo check

Mikayla created

Change summary

.github/workflows/ci.yml | 8 ++++++++
1 file changed, 8 insertions(+)

Detailed changes

.github/workflows/ci.yml 🔗

@@ -38,8 +38,16 @@ jobs:
             - name: Set up default .cargo/config.toml
               run: cp ./.cargo/ci-config.toml ~/.cargo/config.toml
 
+            - name: Check spelling
+              run: |
+                  if ! command -v typos > /dev/null; then
+                    cargo install typos-cli
+                  fi
+                  typos
+
             - name: Run style checks
               uses: ./.github/actions/check_style
+
     tests:
         name: Run tests
         runs-on: