33 lines
1.0 KiB
YAML
33 lines
1.0 KiB
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Systempakete installieren
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y pkg-config libx11-dev libxkbcommon-dev libwayland-dev libgl1-mesa-dev network-manager curl
|
|
- name: Rust installieren
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: rustfmt, clippy
|
|
- name: Anwendung bauen und testen
|
|
run: |
|
|
bash -n scripts/*.sh tests/*.sh
|
|
bash scripts/build-release.sh
|
|
./dist/csr-intake-x86_64 --check-bundle
|
|
file dist/csr-intake-x86_64 | grep -q 'static-pie linked'
|
|
env -i HOME="$RUNNER_TEMP" XDG_CACHE_HOME="$RUNNER_TEMP/cache" PATH=/nonexistent ./dist/csr-intake-x86_64 --check-bundle
|
|
- name: Eigenständige Anwendung bereitstellen
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: csr-intake-x86_64
|
|
path: dist/csr-intake-x86_64
|
|
if-no-files-found: error
|