Run tests from nobody

This commit is contained in:
Fedor Korotkiy 2022-03-26 16:52:58 +03:00
parent 44c47db9b2
commit de61b1f868
2 changed files with 3 additions and 3 deletions

View file

@ -11,8 +11,8 @@ check:
- golangci-lint run --build-tags private,solution ./...
#- go test -v -tags private,solution ./...
#- go test -v -race -tags private,solution ./...
- go test $(go list -tags private,solution ./... | grep -v /dockertest | grep -v /foolsday3) -tags private,solution -v ./...
- go test $(go list -tags private,solution ./... | grep -v /dockertest) -tags private,solution -v -race ./...
- sudo -u nobody go test $(go list -tags private,solution ./... | grep -v /dockertest | grep -v /foolsday3) -tags private,solution -v ./...
- sudo -u nobody go test $(go list -tags private,solution ./... | grep -v /dockertest) -tags private,solution -v -race ./...
rebuild-base-image:
tags:

View file

@ -1,7 +1,7 @@
FROM golang:1.17
RUN apt-get update && apt-get install -y \
rsync libssl-dev postgresql \
rsync libssl-dev postgresql sudo \
&& rm -rf /var/lib/apt/lists/*
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.44.0