FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
stackit-cli/Makefile at main · stackitcloud/stackit-cli · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
stackitcloud
/
stackit-cli
Public
Notifications
You must be signed in to change notification settings
Fork
49
Star
163
Code
Issues
11
Pull requests
10
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
stackit-cli
/
Makefile
Copy path
More file actions
More file actions
Latest commit
History
History
History
39 lines (31 loc) · 1009 Bytes
Breadcrumbs
stackit-cli
/
Makefile
Copy path
File metadata and controls
39 lines (31 loc) · 1009 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
ROOT_DIR
?=
$(
shell
git rev-parse --show-toplevel)
SCRIPTS_BASE
?=
$(
ROOT_DIR
)
/scripts
GOLANG_CI_YAML_PATH
?= ${ROOT_DIR}/golang-ci.yaml
GOLANG_CI_ARGS
?= --allow-parallel-runners --config=${GOLANG_CI_YAML_PATH}
#
Build
build
:
@go build -o ./bin/stackit
fmt
:
@gofmt -s -w
.
@go tool golangci-lint fmt --config=
${GOLANG_CI_YAML_PATH}
#
Lint
lint-golangci-lint
:
@echo
"
>> Linting with golangci-lint
"
@go tool golangci-lint run
${GOLANG_CI_ARGS}
lint-yamllint
:
@echo
"
>> Linting with yamllint
"
@yamllint -c .yamllint.yaml
.
lint
: lint-golangci-lint lint-yamllint
#
Test
test
:
@echo
"
>> Running tests for the CLI application
"
@go
test
./... -count=1 -coverprofile=coverage.out
#
Test coverage
coverage
:
@echo
"
>> Creating test coverage report for the CLI application
"
@go
test
./... -coverprofile=coverage.out
||
true
@go tool cover -html=coverage.out -o coverage.html
#
Generate docs
generate-docs
:
@echo
"
>> Generating docs...
"
@go run
$(
SCRIPTS_BASE
)
/generate.go
Back
|
FazBrowse Home
|
New Git URL