-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (56 loc) · 2.12 KB
/
Copy pathbootstrap-checks.yml
File metadata and controls
65 lines (56 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Copyright 2026 Hewlett Packard Enterprise Development LP
---
name: bootstrap-validation
'on':
pull_request:
jobs:
validate-bootstrap:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Install Linux setup prerequisites
run: |
sudo apt-get update
sudo apt-get install -y python3-yaml
- name: Run bootstrap checks
run: ./bin/run-checks.sh
- name: Smoke test Python setup engine
run: |
mkdir -p tmp-ci-python-workspace
cd tmp-ci-python-workspace
python3 ../bin/ide-workspace-setup.py
python3 ../bin/ide-workspace-setup.py --apply
test -f .vscode/settings.json
test -f .vscode/extensions.json
test -f cspell.config.yaml
test -f vscode-project-words.txt
- name: Smoke test shell wrapper
run: |
mkdir -p tmp-ci-shell-workspace
cd tmp-ci-shell-workspace
../bin/ide-workspace-setup.sh
validate-windows-bootstrap:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Validate Windows bootstrap prerequisites
shell: pwsh
run: .\bin\bootstrap-windows-dev.ps1 -ValidateOnly
- name: Smoke test PowerShell wrapper
shell: pwsh
run: |
New-Item -ItemType Directory -Path tmp-ci-windows-workspace | Out-Null
Push-Location tmp-ci-windows-workspace
try {
& ..\bin\ide-workspace-setup.ps1
& ..\bin\ide-workspace-setup.ps1 -Apply
if (-not (Test-Path .vscode\settings.json)) { throw 'Missing .vscode/settings.json' }
if (-not (Test-Path .vscode\extensions.json)) { throw 'Missing .vscode/extensions.json' }
if (-not (Test-Path cspell.config.yaml)) { throw 'Missing cspell.config.yaml' }
if (-not (Test-Path vscode-project-words.txt)) { throw 'Missing vscode-project-words.txt' }
}
finally {
Pop-Location
}