forked from ubuntu/gnome-calculator
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (46 loc) · 1.45 KB
/
yarf-test.yml
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
name: yarf-test
on:
workflow_dispatch:
pull_request:
branches:
- stable
push:
branches:
- stable
jobs:
build-snap:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: snapcore/action-build@v1
id: snapcraft
- uses: actions/upload-artifact@v4
with:
name: 'snap'
path: ${{ steps.snapcraft.outputs.snap}}
- name: yarf-test
run: |
# sudo snap install --dangerous ${{ steps.snapcraft.outputs.snap }}
sudo apt install -y gnome-calculator
sudo snap install mir-test-tools
sudo snap install yarf --beta
sudo apt-get --yes --no-install-recommends install \
inotify-tools
export WAYLAND_DISPLAY=wayland-99
mir-test-tools.demo-server \
--add-wayland-extensions zwlr_screencopy_manager_v1:zwlr_virtual_pointer_manager_v1 \
--platform-display-libs mir:virtual \
--virtual-output 1280x1024 &
# Wait for the compositor to start
inotifywait --event create --include "^$XDG_RUNTIME_DIR/wayland-99\$" $XDG_RUNTIME_DIR
# Avoid GNOME apps waiting for portals
dbus-run-session -- gnome-calculator &
mkdir ./output
yarf --platform=Mir ./yarf-test --outdir=./output
- if: failure()
name: Collect test results
uses: actions/upload-artifact@v4
with:
name: yarf-output
path: ./output/*
retention-days: 1