Skip to content

Commit

Permalink
Makefile: Add hive test (#12542)
Browse files Browse the repository at this point in the history
Allows you to simulate the workflow job `test-hive` using nektosact
  • Loading branch information
somnathb1 authored Oct 31, 2024
1 parent e2639cf commit b8b040d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,16 @@ test: test-erigon-lib
test-integration: test-erigon-lib
$(GOTEST) --timeout 240m -tags $(BUILD_TAGS),integration

## test-hive run the hive tests locally off nektos/act workflows simulator
test-hive:
@if ! command -v act >/dev/null 2>&1; then \
echo "act command not found in PATH, please source it in PATH. If nektosact is not installed, install it by visiting https://nektosact.com/installation/index.html"; \
elif [ -z "$(GITHUB_TOKEN)"]; then \
echo "Please export GITHUB_TOKEN var in the environment"; \
else \
act -j test-hive -s GITHUB_TOKEN=$(GITHUB_TOKEN) ; \
fi

## lint-deps: install lint dependencies
lint-deps:
@cd erigon-lib && $(MAKE) lint-deps
Expand Down

0 comments on commit b8b040d

Please sign in to comment.