Add job for profile installation #51
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: ./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 $(cat .github/workflows/apt-packages.txt) | |
export DISPLAY=:99 | |
Xvfb :99 -screen 0 1024x768x24 & | |
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 |