Skip to content

Add job for profile installation #38

Add job for profile installation

Add job for profile installation #38

Workflow file for this run

name: CI
on:
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true # This will initialize and update submodules
- name: Cache apt packages
uses: actions/cache@v3
with:
path: /var/cache/apt
key: ${{ runner.os }}-apt-${{ hashFiles('.github/workflows/apt-packages.txt') }}
restore-keys: |
${{ runner.os }}-apt-
- name: Set up environment
run: |
sudo apt-get update && sudo apt-get install -y $(cat .github/workflows/apt-packages.txt)
# Allow sudo without password for the current user
echo "$USER ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/$USER
# Set up and start Xvfb
export DISPLAY=:99
Xvfb :99 -screen 0 1024x768x24 &
# Set up gnome environment
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: Test install script itself with dummy configs
run: ./install-test
- name: Test ubuntu-generic profile
run: ./install --profile ubuntu-generic