Skip to content

Commit

Permalink
init new job
Browse files Browse the repository at this point in the history
  • Loading branch information
bournezjc committed Nov 7, 2024
1 parent e286e74 commit 7449ccb
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- 'chore/ci-publish-docker'
- 'bourne/fp_ci'
- 'main'
tags:
- '*'
Expand All @@ -25,4 +26,31 @@ jobs:
secrets: inherit
with:
publish: true
repoName: finality-gadget
repoName: finality-gadget

test_finality_provider:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Clone finality-provider repository
run: |
current_hash=$(git rev-parse HEAD)
remote_url=$(git remote get-url origin)
repo_path=$(echo $remote_url | sed -E 's/.*:(.+)\.git/\1/')
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
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|" go.mod
go mod tidy
make test-e2e-op

0 comments on commit 7449ccb

Please sign in to comment.