Skip to content

Commit

Permalink
Add p2p sync test into CI
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciechos committed Mar 20, 2024
1 parent 6317b0d commit 9ae1c0a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ jobs:
platforms: 'linux/amd64'
push: true
tags: nethermindeth/juno:${{ env.DOCKER_IMAGE_TAG }}


p2p-sync-test:
needs: [docker_build_and_publish]
uses: ./.github/workflows/p2p-sync-test.yml
with:
JUNO_VERSION: ${{ needs.docker_build_and_publish.outputs.IMAGE_TAG }}

deploy_to_dev:
permissions:
id-token: write
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/p2p-sync-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: p2p-sync-test

on:
workflow_call:
inputs:
JUNO_VERSION:
required: true
type: string

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Install Kurtosis CLI
run: |
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list
sudo apt update
sudo apt install kurtosis-cli
- name: Run p2p sync tests
run: |
kurtosis run github.com/nethermindeth/juno-sync-test '{"juno_version":"${{ secrets.JUNO_VERSION }}"}'

0 comments on commit 9ae1c0a

Please sign in to comment.