From 685c2c9715d75be6c683906fc2d69beb0d2d8c35 Mon Sep 17 00:00:00 2001 From: Bourne Zhang Date: Fri, 8 Nov 2024 21:37:05 +0800 Subject: [PATCH] test --- .github/workflows/publish.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8efed1c..c1a3f67 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,6 +8,9 @@ on: - 'main' tags: - '*' + pull_request: + branches: + - '**' jobs: lint_test: @@ -38,7 +41,6 @@ jobs: run: | current_hash=$(git rev-parse HEAD) remote_url=$(git remote get-url origin) - echo "remote_url: $remote_url" if [[ $remote_url == https://* ]]; then # For HTTPS URLs repo_path=$(echo $remote_url | sed -E 's|https://github.com/(.+)(\.git)*|\1|') @@ -46,12 +48,14 @@ jobs: # For SSH URLs repo_path=$(echo $remote_url | sed -E 's/.*:(.+)\.git/\1/') fi - echo "repo_path: $repo_path" fp_version=$(go list -m github.com/$repo_path@$current_hash) git clone https://github.com/babylonlabs-io/finality-provider cd finality-provider git checkout base/consumer-chain-support sed -i "s|github\.com\/babylonlabs-io\/finality-gadget.*|$fp_version|g" go.mod - go mod tidy - make test-e2e-op + # go mod tidy + + export PATH=${PATH}:$(go env GOPATH)/bin + echo "PATH: $PATH" + # make test-e2e-op