Skip to content

Commit

Permalink
ci: add test for runtime updates (#209)
Browse files Browse the repository at this point in the history
* tests: add runtime update test

* workflows: add initial runtime update tests to ci

* tests: fix tar extract error

* tests: specify absolute path

* workflows: install package in root

* workflows: log the path

* Revert "tests: specify absolute path"

This reverts commit be16065.

* workflows: perform user install

* tests: refer to user install binary

* workflows: update workflow step name
  • Loading branch information
R1kaB3rN authored Oct 9, 2024
1 parent dcdfb5e commit dfb2410
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
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

0 comments on commit dfb2410

Please sign in to comment.