feat(github): added github action

This commit is contained in:
Kristian Borgwarth 2026-04-03 02:46:47 +02:00
parent 69795449c7
commit 921867b8bd

31
.github/workflows/test.yml vendored Normal file
View file

@ -0,0 +1,31 @@
name: Tests
on:
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Cache Go modules
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run unit tests
run: go test ./test/test_unit/...
- name: Run integration tests
run: go test ./test/test_integration/...