mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-07 20:39:04 +03:00
Pin a specific version of typos
in CI (#15128)
This PR makes it so we pin a specific version of `typos` in CI, rather than just relying on whatever is already installed or what the latest version is. Release Notes: - N/A
This commit is contained in:
parent
b14bb6bda4
commit
fb4d77c008
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user