From b8b040de03ba8a35cc7eba774d2476e61412a063 Mon Sep 17 00:00:00 2001 From: Somnath Date: Thu, 31 Oct 2024 14:16:18 +0530 Subject: [PATCH] Makefile: Add hive test (#12542) Allows you to simulate the workflow job `test-hive` using nektosact --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index ef03d0a757f..f1aa0999f0c 100644 --- a/Makefile +++ b/Makefile @@ -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