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:
|
2024-01-26 14:18:46 +01:00
|
|
|
nix:
|
|
|
|
runs-on: docker
|
|
|
|
container:
|
|
|
|
image: nix
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Nix doctor
|
|
|
|
run: nix doctor
|
|
|
|
- name: Check flake
|
|
|
|
run: nix flake check --all-systems
|
|
|
|
- name: Build flake
|
|
|
|
run: nix build --print-out-paths
|
|
|
|
- name: Flake info
|
|
|
|
run: nix flake info
|
2023-11-19 21:11:56 +01:00
|
|
|
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
|
2024-04-06 18:57:43 +02:00
|
|
|
uses: dominikh/staticcheck-action@v1
|
2024-01-24 13:33:26 +01:00
|
|
|
with:
|
|
|
|
version: "latest"
|
|
|
|
install-go: false
|
2023-11-19 21:11:56 +01:00
|
|
|
- name: Run tests
|
|
|
|
run: make test
|