mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-15 07:28:05 +00:00
ci: check for valid compilation artifacts in alpine stage (#284096)
* ci: check for valid compilation artifacts in alpine stage * chore: address review feedback * chore: improve logging
This commit is contained in:
@@ -100,6 +100,23 @@ jobs:
|
||||
GITHUB_TOKEN: "$(github-distro-mixin-password)"
|
||||
displayName: Compile & Hygiene
|
||||
|
||||
- script: |
|
||||
set -e
|
||||
|
||||
[ -d "out-build" ] || { echo "ERROR: out-build folder is missing" >&2; exit 1; }
|
||||
[ -n "$(find out-build -mindepth 1 2>/dev/null | head -1)" ] || { echo "ERROR: out-build folder is empty" >&2; exit 1; }
|
||||
echo "out-build exists and is not empty"
|
||||
|
||||
ls -d out-vscode-* >/dev/null 2>&1 || { echo "ERROR: No out-vscode-* folders found" >&2; exit 1; }
|
||||
for folder in out-vscode-*; do
|
||||
[ -d "$folder" ] || { echo "ERROR: $folder is missing" >&2; exit 1; }
|
||||
[ -n "$(find "$folder" -mindepth 1 2>/dev/null | head -1)" ] || { echo "ERROR: $folder is empty" >&2; exit 1; }
|
||||
echo "$folder exists and is not empty"
|
||||
done
|
||||
|
||||
echo "All required compilation folders checked."
|
||||
displayName: Validate compilation folders
|
||||
|
||||
- script: |
|
||||
set -e
|
||||
npm run compile
|
||||
|
||||
Reference in New Issue
Block a user