Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
install xvfb before running in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
priyamsahoo committed Feb 14, 2024
1 parent ddb72b5 commit 52ea5e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ jobs:
if: ${{ always() }}
run: |
mkdir -p out/vscode
cp -r ../vscode-ansible/out/userdata/logs/* out/vscode || true
cp -r ../vscode-ansible/out/log/* out/vscode || echo "::error:: Copy logs failed"
- name: Upload test logs
if: ${{ always() }}
Expand Down
2 changes: 1 addition & 1 deletion tools/test-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ if [[ -f "/usr/bin/apt-get" ]]; then
INSTALL=0
# qemu-user-static is required by podman on arm64
# python3-dev is needed for headers as some packages might need to compile
DEBS=(curl git python3-dev python3-venv python3-pip qemu-user-static)
DEBS=(curl git python3-dev python3-venv python3-pip qemu-user-static xvfb x11-xserver-utils)
for DEB in "${DEBS[@]}"; do
[[ "$(dpkg-query --show --showformat='${db:Status-Status}\n' \
"${DEB}" || true)" != 'installed' ]] && INSTALL=1
Expand Down
3 changes: 2 additions & 1 deletion tools/vscode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ cleanup() {

if [[ -f "/usr/bin/apt-get" ]]; then
trap "cleanup" SIGINT SIGTERM ERR EXIT
xvfb-run --auto-servernum task devel -- ../ansible-language-server
sudo apt-get -qq install -y xvfb
xvfb-run -e /dev/stdout --auto-servernum task devel -- ../ansible-language-server
else
task devel -- ../ansible-language-server
fi

0 comments on commit 52ea5e8

Please sign in to comment.