Prechádzať zdrojové kódy

fix(ci): force update

jguer 4 rokov pred
rodič
commit
feb2cea9e0
3 zmenil súbory, kde vykonal 17 pridanie a 5 odobranie
  1. 6 0
      .dockerignore
  2. 5 1
      Dockerfile
  3. 6 4
      Makefile

+ 6 - 0
.dockerignore

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

+ 5 - 1
Dockerfile

@@ -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 . .

+ 6 - 4
Makefile

@@ -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: