Some checks failed
build / build (push) Failing after 13s
Added steps to the workflow that should now allow the program and unit file to be tested for functionality
35 lines
833 B
YAML
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
|