e2e/Makefile

Summary

Maintainability
Test Coverage
GOARCH = amd64

UNAME = $(shell uname -s)

ifndef OS
    ifeq ($(UNAME), Linux)
    else ifeq ($(UNAME), Darwin)
        OS = darwin
    endif
endif

GOSRC = $(shell find . -type f -name '*.go')
.DEFAULT_GOAL := all
.PHONY: fmt lint

fmt:
    gci write -s Standard -s Default -s 'Prefix(github.com/werf)' tests/
    gofumpt -extra -w tests/

lint:
    GOOS=$(OS) GOARCH="$(GOARCH)" golangci-lint run ./... --config ../.golangci.yaml

all: fmt lint