mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-23 22:55:28 +00:00
ci: don't clean modules cache (#5519)
* chore(make): add `verify` command Signed-off-by: Dwi Siswanto <git@dw1.io> * ci: remove hygiene (`clean -modcache`) with verify instead Signed-off-by: Dwi Siswanto <git@dw1.io> --------- Signed-off-by: Dwi Siswanto <git@dw1.io>
This commit is contained in:
parent
a5c7fe6094
commit
1e49cd9800
6
.github/workflows/build-test.yml
vendored
6
.github/workflows/build-test.yml
vendored
@ -27,10 +27,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.10'
|
||||||
|
|
||||||
- name: Go Mod hygiene
|
- name: Verify Go modules
|
||||||
run: |
|
run: make verify
|
||||||
go clean -modcache
|
|
||||||
go mod tidy
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: go build .
|
run: go build .
|
||||||
|
|||||||
6
.github/workflows/performance-test.yaml
vendored
6
.github/workflows/performance-test.yaml
vendored
@ -22,10 +22,8 @@ jobs:
|
|||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: projectdiscovery/actions/setup/go@v1
|
uses: projectdiscovery/actions/setup/go@v1
|
||||||
|
|
||||||
- name: Go Mod hygine
|
- name: Verify Go modules
|
||||||
run: |
|
run: make verify
|
||||||
go clean -modcache
|
|
||||||
go mod tidy
|
|
||||||
|
|
||||||
# Max GH exection time 6H => timeout after that
|
# Max GH exection time 6H => timeout after that
|
||||||
- name: Running performance with big list
|
- name: Running performance with big list
|
||||||
|
|||||||
4
Makefile
4
Makefile
@ -11,7 +11,7 @@ ifneq ($(shell go env GOOS),darwin)
|
|||||||
LDFLAGS := -extldflags "-static"
|
LDFLAGS := -extldflags "-static"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: all build build-stats scan-charts docs test integration functional tidy devtools jsupdate ts fuzzplayground memogen dsl-docs
|
.PHONY: all build build-stats scan-charts docs test integration functional tidy verify devtools jsupdate ts fuzzplayground memogen dsl-docs
|
||||||
|
|
||||||
all: build
|
all: build
|
||||||
build:
|
build:
|
||||||
@ -39,6 +39,8 @@ functional:
|
|||||||
cd cmd/functional-test; bash run.sh
|
cd cmd/functional-test; bash run.sh
|
||||||
tidy:
|
tidy:
|
||||||
$(GOMOD) tidy
|
$(GOMOD) tidy
|
||||||
|
verify: tidy
|
||||||
|
$(GOMOD) verify
|
||||||
devtools:
|
devtools:
|
||||||
$(GOBUILD) $(GOFLAGS) -ldflags '$(LDFLAGS)' -o "bindgen" pkg/js/devtools/bindgen/cmd/bindgen/main.go
|
$(GOBUILD) $(GOFLAGS) -ldflags '$(LDFLAGS)' -o "bindgen" pkg/js/devtools/bindgen/cmd/bindgen/main.go
|
||||||
$(GOBUILD) $(GOFLAGS) -ldflags '$(LDFLAGS)' -o "tsgen" pkg/js/devtools/tsgen/cmd/tsgen/main.go
|
$(GOBUILD) $(GOFLAGS) -ldflags '$(LDFLAGS)' -o "tsgen" pkg/js/devtools/tsgen/cmd/tsgen/main.go
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user