Skip to content

Commit b5cf746

Browse files
committed
Fix build-and-test in update-codeql.yml workflow
This commit is an attempt to fix the "build-and-test" step of the update-codeql.yml actions workflow, which has been failing due to missing dev/test dependencies on "ubuntu-latest" actions runner: - New step "Update - Install xvfb and VS Code dependencies" - Installs xvfb (virtual framebuffer) and system libraries VS Code needs (matching the pattern from copilot-setup-steps.yml). - Wrapped npm run build-and-test with xvfb-run -a to provide a virtual display — matching how build-and-test-extension.yml runs integration tests.
1 parent 1d231ad commit b5cf746

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/update-codeql.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,14 @@ jobs:
134134
- name: Update - Upgrade CodeQL pack dependencies
135135
run: server/scripts/upgrade-packs.sh
136136

137+
- name: Update - Install xvfb and VS Code dependencies
138+
run: |
139+
sudo apt-get update
140+
sudo apt-get install -y xvfb libgbm1 libgtk-3-0 libxshmfence1
141+
sudo apt-get install -y libasound2t64 || sudo apt-get install -y libasound2
142+
137143
- name: Update - Build and test
138-
run: npm run build-and-test
144+
run: xvfb-run -a npm run build-and-test
139145

140146
- name: Update - Create Pull Request
141147
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0

0 commit comments

Comments
 (0)