this repo has no description
1when:
2 - event: ["push", "pull_request"]
3 branch: master
4
5engine: nixery
6
7dependencies:
8 nixpkgs:
9 - go
10 - gcc
11
12steps:
13 - name: patch static dir
14 command: |
15 mkdir -p appview/pages/static; touch appview/pages/static/x
16
17 - name: run go mod tidy
18 command: go mod tidy
19
20 - name: run gomod2nix
21 command: |
22 HOME=$(mktemp -d)
23 echo $HOME
24 nix run .#gomod2nix
25
26 - name: verify no changes
27 command: |
28 if ! git diff --quiet; then
29 echo "Error: gomod2nix produced changes. Please commit the updated files."
30 git diff
31 exit 1
32 fi
33
34 - name: run linter
35 environment:
36 CGO_ENABLED: 1
37 command: |
38 go vet -v ./...
39
40 - name: run all tests
41 environment:
42 CGO_ENABLED: 1
43 command: |
44 go test -v ./...