when: - event: ["push", "pull_request"] branch: ["master","ci"] engine: nixery dependencies: nixpkgs: - go - gcc steps: - name: patch static dir command: | mkdir -p appview/pages/static; touch appview/pages/static/x - name: run go mod tidy command: go mod tidy - name: run gomod2nix command: | # this var is overridden by the env setup otherwise export HOME=/tmp/build-home mkdir -p $HOME rm -rf /homeless-shelter || true nix run .#gomod2nix - name: verify no changes command: | if ! git diff --quiet; then echo "Error: gomod2nix produced changes. Please commit the updated files." git diff exit 1 fi - name: run linter environment: CGO_ENABLED: 1 command: | go vet -v ./... - name: run all tests environment: CGO_ENABLED: 1 command: | go test -v ./...