From f07c7f138c5d6ef8ff8a77a49dcf190f6c81631e Mon Sep 17 00:00:00 2001 From: Robert Morrison Date: Wed, 3 Jul 2024 22:07:06 +0100 Subject: [PATCH] ci(build): Quick and Dirty testing. Added steps to the workflow that should now allow the program and unit file to be tested for functionality --- .gitea/workflows/build.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 78047d0..0eb2a0c 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -19,3 +19,16 @@ jobs: - name: Run make run: make + + - name: Install dexedrine to the container + run: sudo make install + + - name: Test unit file + run: systemd-analyze verify dexedrine.service + + - name: Prepare to test the service + run: sudo systemctl --user daemon-reload + - name: Test starting the service + run: sudo systemctl --user start dexedrine.service + - name: Test stopping the service + run: sudo systemctl --user stop dexedrine.service