Skip to content

Commit

Permalink
ci: adding lsp carate to check versions
Browse files Browse the repository at this point in the history
  • Loading branch information
benfdking committed Jun 17, 2024
1 parent 3f971b6 commit e4525e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .hacking/check_versions_match.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set -eo pipefail
# Extract version from Cargo.toml
cargo_version_cli=$(grep "^version" crates/cli/Cargo.toml | awk -F '"' '{print $2}')
cargo_version_lib=$(grep "^version" crates/lib/Cargo.toml | awk -F '"' '{print $2}')
cargo_version_lsp=$(grep "^version" crates/lsp/Cargo.toml | awk -F '"' '{print $2}')

# Optional GitHub release version passed as an argument
github_release_version=$1
Expand All @@ -17,6 +18,7 @@ compare_versions() {
}

compare_versions "$cargo_version_cli" "$cargo_version_lib"
compare_versions "$cargo_version_cli" "$cargo_version_lsp"

# Extract version from package.json in VS Code and compare
code_version=$(grep "\"version\"" editors/code/package.json | awk -F '"' '{print $4}')
Expand Down

0 comments on commit e4525e1

Please sign in to comment.