refactor: Separate some app logic into package session
#72
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test | |
on: | |
push: | |
branches: [ 'master' ] | |
pull_request: | |
branches: [ 'master' ] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20.8' | |
- name: Install dependencies | |
run: sudo apt-get update && sudo apt-get install -y libasound2-dev libvorbis-dev libogg-dev | |
- name: Build daemon | |
run: go build -v ./cmd/daemon | |
- name: Test | |
run: go test -v ./... |