-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (49 loc) · 1.43 KB
/
install-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
52
53
54
55
56
57
58
name: CI
on:
pull_request:
branches:
- master
jobs:
install-script:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Run install-script tests
run: ./meta/scripts/install-test
ubuntu-generic-profile:
runs-on: ubuntu-24.04
needs: install-script
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Restart snapd
run: sudo systemctl restart snapd
- name: Set up environment
run: |
sudo apt-get update && sudo apt-get install -y \
dbus-x11 \
xvfb \
gnome-shell \
gnome-session \
gnome-shell-extension-ubuntu-dock \
gnome-shell-extension-desktop-icons-ng \
gnome-terminal \
gnome-settings-daemon \
gnome-control-center \
gsettings-desktop-schemas \
dconf-cli
export DISPLAY=:99
sudo service dbus start
Xvfb :99 -screen 0 1024x768x24 &
gnome-session &
export XDG_RUNTIME_DIR=/run/user/$(id -u)
sudo mkdir -p $XDG_RUNTIME_DIR
sudo chown $(whoami):$(whoami) $XDG_RUNTIME_DIR
chmod 700 $XDG_RUNTIME_DIR
- name: Run ubuntu-generic-profile tests
run: ./install --profile ubuntu-generic