mirror of
https://github.com/Jguer/yay
synced 2024-10-04 15:19:08 +00:00
fix(ci): force update
This commit is contained in:
parent
6bfcfc168f
commit
feb2cea9e0
6
.dockerignore
Normal file
6
.dockerignore
Normal file
|
@ -0,0 +1,6 @@
|
|||
*
|
||||
!*.go
|
||||
!pkg
|
||||
!go.mod
|
||||
!go.sum
|
||||
!Makefile
|
|
@ -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 . .
|
||||
|
|
10
Makefile
10
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:
|
||||
|
|
Loading…
Reference in a new issue