Monorepo for Tangled tangled.org
at ci 917 B view raw
1when: 2 - event: ["push", "pull_request"] 3 branch: ["master","ci"] 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 # this var is overridden by the env setup otherwise 23 export HOME=/tmp/build-home 24 mkdir -p $HOME 25 rm -rf /homeless-shelter || true 26 nix run .#gomod2nix 27 28 - name: verify no changes 29 command: | 30 if ! git diff --quiet; then 31 echo "Error: gomod2nix produced changes. Please commit the updated files." 32 git diff 33 exit 1 34 fi 35 36 - name: run linter 37 environment: 38 CGO_ENABLED: 1 39 command: | 40 go vet -v ./... 41 42 - name: run all tests 43 environment: 44 CGO_ENABLED: 1 45 command: | 46 go test -v ./...