Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Pin a specific version of `typos` in CI (#15128)

Marshall Bowersfb4d77c00837
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 109e4b77193..7ac790afb8c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -40,10 +40,15 @@ jobs:
- name: Check spelling
run: |
- if ! which typos > /dev/null; then
- cargo install typos-cli
+ if ! cargo install --list | grep "typos-cli v$TYPOS_CLI_VERSION" > /dev/null; then
+ echo "Installing typos-cli@$TYPOS_CLI_VERSION..."
+ cargo install "typos-cli@$TYPOS_CLI_VERSION"
+ else
+ echo "typos-cli@$TYPOS_CLI_VERSION is already installed."
fi
typos
+ env:
+ TYPOS_CLI_VERSION: "1.23.3"
- name: Run style checks
uses: ./.github/actions/check_style