Skip to content

Implement Cairo0 Class Hash #5286

Implement Cairo0 Class Hash

Implement Cairo0 Class Hash #5286

name: Sync First 100 Blocks Smoke Test
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
run_smoke_tests:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
steps:
- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: "juno,juno-smoke-tests"
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/[email protected]
with:
go-version-file: go.mod
cache: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build docker image
run: docker build --build-arg VM_DEBUG=true -t nethermindeth/juno .
- name: Checkout Juno Smoke Tests
uses: actions/checkout@v4
with:
repository: NethermindEth/juno-smoke-tests
token: ${{ steps.generate-token.outputs.token }}
- name: Run smoke tests
run: |
cd smoke-tests/node_tests
go test -v -run TestMonitorNodeSync -args -targetBlock=$TARGET_BLOCK -timeout=$TIMEOUT
env:
TARGET_BLOCK: 100
TIMEOUT: 10m
JUNO_PARAMETERS: "--network mainnet --eth-node ${{ secrets.ETH_NODE_MAINNET }}"