dexedrine/.gitea/workflows/build.yaml
Robert Morrison f07c7f138c
Some checks failed
build / build (push) Failing after 13s
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
2024-07-03 22:11:58 +01:00

35 lines
833 B
YAML

name: build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Prepare apt
run: sudo apt-get update
- name: Install dependencies
run: sudo apt-get install -y libbsd-dev libsystemd-dev
- 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