mirror of
https://github.com/bitwarden/clients.git
synced 2026-03-11 17:40:57 -05:00
add wayland validation
This commit is contained in:
53
.github/workflows/build-desktop.yml
vendored
53
.github/workflows/build-desktop.yml
vendored
@@ -1980,6 +1980,58 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
validate-linux-wayland:
|
||||
name: Validate Linux Wayland
|
||||
runs-on: ubuntu-22.04
|
||||
needs:
|
||||
- setup
|
||||
- linux
|
||||
env:
|
||||
_PACKAGE_VERSION: ${{ needs.setup.outputs.package_version }}
|
||||
steps:
|
||||
- name: Check out repo
|
||||
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
|
||||
with:
|
||||
fetch-depth: 1
|
||||
ref: ${{ github.event.workflow_run.head_sha }}
|
||||
persist-credentials: false
|
||||
|
||||
- name: Download appimage artifact
|
||||
id: download-appimage
|
||||
uses: bitwarden/gh-actions/download-artifacts@main
|
||||
with:
|
||||
path: apps/desktop/artifacts/linux/appimage
|
||||
artifacts: Bitwarden-${{ env._PACKAGE_VERSION }}-x86_64.AppImage
|
||||
|
||||
- name: Install deps
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libasound2 libfuse2 xvfb
|
||||
sudo apt-get install -y weston libwayland-client-dev libwayland-server-dev
|
||||
|
||||
- name: Run headless Wayland compositor
|
||||
run: |
|
||||
# Start Weston in a virtual terminal in headless mode
|
||||
weston --headless --socket=wayland-0 &
|
||||
# Let the compositor start
|
||||
sleep 5
|
||||
|
||||
- name: Run AppImage
|
||||
working-directory: apps/desktop/artifacts/linux/appimage
|
||||
env:
|
||||
WAYLAND_DISPLAY: wayland-0
|
||||
run: |
|
||||
chmod a+x ./Bitwarden-${_PACKAGE_VERSION}-x86_64.AppImage
|
||||
./Bitwarden-${_PACKAGE_VERSION}-x86_64.AppImage --no-sandbox &
|
||||
sleep 30
|
||||
if pgrep bitwarden > /dev/null; then
|
||||
pkill -9 bitwarden
|
||||
echo "Bitwarden is running."
|
||||
else
|
||||
echo "Bitwarden is not running."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
validate-linux-flatpak:
|
||||
name: Validate Linux ${{ matrix.os }} Flatpak
|
||||
runs-on: ${{ matrix.os || 'ubuntu-22.04' }}
|
||||
@@ -2101,6 +2153,7 @@ jobs:
|
||||
- validate-linux-x64-appimage
|
||||
- validate-linux-flatpak
|
||||
- validate-linux-snap
|
||||
- validate-linux-wayland
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
|
||||
Reference in New Issue
Block a user