2023-11-19 21:11:56 +01:00
|
|
|
name: Run tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-01-24 13:33:26 +01:00
|
|
|
pull_request:
|
2023-11-19 21:11:56 +01:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
tests:
|
|
|
|
runs-on: docker
|
|
|
|
container:
|
|
|
|
image: debian:stable
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Go
|
|
|
|
uses: actions/setup-go@v4
|
|
|
|
with:
|
|
|
|
#go-version: "stable"
|
|
|
|
go-version-file: "go.mod"
|
|
|
|
check-latest: true
|
2024-01-24 13:33:26 +01:00
|
|
|
- name: Run Linter
|
|
|
|
uses: dominikh/staticcheck-action@v1.3.0
|
|
|
|
with:
|
|
|
|
version: "latest"
|
|
|
|
install-go: false
|
2023-11-19 21:11:56 +01:00
|
|
|
- name: Run tests
|
|
|
|
run: make test
|
|
|
|
|