test: Implement db unit tests

This commit is contained in:
Eugen Eisler
2024-08-21 00:50:19 +02:00
parent e01d355d1b
commit 1bafde09b6
6 changed files with 192 additions and 0 deletions

View File

@@ -9,6 +9,23 @@ on:
branches: ["main"]
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: ./go.mod
- name: Run tests
run: go test -v ./...
build:
name: Build binaries for Windows, macOS, and Linux
runs-on: ${{ matrix.os }}