Go project template I use with pre-configured CI
template
1when:
2 - event: ["push"]
3 branch: ["main"]
4 - event: ["pull_request"]
5 branch: ["main"]
6
7engine: "nixery"
8
9# using the default values
10clone:
11 skip: false
12 depth: 1
13
14dependencies:
15 nixpkgs:
16 - go
17 - gcc
18
19steps:
20 - name: "Build servmon"
21 command: "go build ./..."
22
23 - name: "Run tests"
24 command: "go test ./... -v"