Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add test for runtime updates #209

Merged
merged 10 commits into from
Oct 9, 2024
Merged
32 changes: 32 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: e2e

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: |
sudo apt-get install meson scdoc python3-hatchling python3-build python3-installer python3-filelock
- name: Initialize submodules
run: |
git submodule update --init --recursive
- name: Make user install
run: |
./configure.sh --user-install
make install
- name: Run tests
run: |
bash tests/test_update.sh
10 changes: 10 additions & 0 deletions tests/test_update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env sh

mkdir -p $HOME/.local/share/umu

curl -LJO "https://repo.steampowered.com/steamrt3/images/0.20240916.101795/SteamLinuxRuntime_sniper.tar.xz"
tar xaf SteamLinuxRuntime_sniper.tar.xz
mv SteamLinuxRuntime_sniper/* $HOME/.local/share/umu
mv $HOME/.local/share/umu/_v2-entry-point $HOME/.local/share/umu/umu

UMU_LOG=debug GAMEID=umu-0 $HOME/.local/bin/umu-run wineboot -u