Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
bournezjc committed Nov 8, 2024
1 parent 2de0c28 commit 685c2c9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
- 'main'
tags:
- '*'
pull_request:
branches:
- '**'

jobs:
lint_test:
Expand Down Expand Up @@ -38,20 +41,21 @@ 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|')
else
# 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

0 comments on commit 685c2c9

Please sign in to comment.