Skip to content

Commit

Permalink
CI: Automate updating the VSCode version in the integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
deribaucourt committed May 28, 2024
1 parent bf62da3 commit 3f46b01
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion integration-tests/src/runTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import { pythonVersion, bashVersion } from './utils/version'

async function main (): Promise<void> {
try {
const vscodeExecutablePath = await downloadAndUnzipVSCode('1.89.1')
const vscodeVersion = '1.89.1'
const vscodeExecutablePath = await downloadAndUnzipVSCode(vscodeVersion)
const [cliPath, ...args] = resolveCliArgsFromVSCodeExecutablePath(vscodeExecutablePath)

cp.spawnSync(
Expand Down
10 changes: 9 additions & 1 deletion scripts/update-ref.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,13 @@ echo "" >> ../$FILE
cd ..
rm -rf yocto-docs

git clone --depth 1 --filter=blob:none --sparse https://github.com/microsoft/vscode.git
cd vscode
git fetch --tags
TMP_TAG=$(git tag --sort=-v:refname | grep -E '^[0-9.]+$' | head -n 1)
sed -e "s/vscodeVersion = '.*'/vscodeVersion = '$TMP_TAG'/" -i ../integration-tests/src/runTest.ts
cd ..
rm -rf vscode

cat $TMP_FILE >> $FILE
rm $TMP_FILE
rm $TMP_FILE

0 comments on commit 3f46b01

Please sign in to comment.