fix(ci): force update

This commit is contained in:
jguer 2020-07-04 23:04:40 +02:00
parent 6bfcfc168f
commit feb2cea9e0
No known key found for this signature in database
GPG key ID: 6D6CC9BEA8556B35
3 changed files with 17 additions and 5 deletions

6
.dockerignore Normal file
View file

@ -0,0 +1,6 @@
*
!*.go
!pkg
!go.mod
!go.sum
!Makefile

View file

@ -4,9 +4,13 @@ LABEL maintainer="Jguer,joaogg3 at google mail"
WORKDIR /app
RUN pacman -Sy --overwrite=* --needed --noconfirm \
RUN pacman -Syu --overwrite=* --needed --noconfirm \
go git
COPY go.mod .
COPY go.sum .
RUN go mod download
ENV ARCH=x86_64
COPY . .

View file

@ -44,11 +44,14 @@ clean:
$(GO) clean $(GOFLAGS) -i ./...
rm -rf $(BIN) $(PKGNAME)_*
.PHONY: test_lint
test_lint: test lint
.PHONY: test
test:
$(GO) vet $(GOFLAGS) ./...
@test -z "$$(gofmt -l *.go)" || (echo "Files need to be linted. Use make fmt" && false)
$(GO) test $(GOFLAGS) --race -covermode=atomic . ./pkg/...
@test -z "$$(gofmt -l $(SOURCES))" || (echo "Files need to be linted. Use make fmt" && false)
$(GO) test $(GOFLAGS) ./...
.PHONY: build
build: $(BIN)
@ -101,8 +104,7 @@ test-vendor: vendor
.PHONY: lint
lint:
golangci-lint run
golint -set_exit_status . ./pkg/...
golangci-lint run ./...
.PHONY: fmt
fmt: