diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d7b8364..49eb654 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: name: Build Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: 'recursive' @@ -20,6 +20,59 @@ jobs: with: go-version: '1.22' + - name: Cache cargo registry + uses: actions/cache@v3 + with: + path: | + juno/vm/rust/target + juno/core/rust/target + juno/starknet/rust/target + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('juno/vm/rust/Cargo.lock') }} + - name: Try make run: | - make build + make build && ls -lh + + - uses: actions/upload-artifact@v4 + with: + name: itachi-${{ github.sha }} + path: | + ./itachi + ./conf + retention-days: 1 + + testing: + name: Integration Test + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + repository: 'reddio-com/itachi-testing' + submodules: 'recursive' + token: ${{ secrets.REDDIO_PAT }} + + - name: Install Python dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Download artifact + uses: actions/download-artifact@v4 + with: + name: itachi-${{ github.sha }} + + - name: Run tests + run: | + pwd && ls -lh && ls ./itachi && chmod +x ./itachi + # Run itachi in the background + ./itachi & + + - name: Run tests + run: | + cd python + python3 transfer_100_eth.py \ No newline at end of file diff --git a/go.sum b/go.sum index 7b7b2fc..ebc775a 100644 --- a/go.sum +++ b/go.sum @@ -713,14 +713,6 @@ github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM= github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg= github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU= github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8= -github.com/yu-org/yu v0.0.0-20240304032425-96f322155c80 h1:kjLnfYWcbxz1r6zSbAZvaaPPvnqhMWOpM6P4mXBbaZM= -github.com/yu-org/yu v0.0.0-20240304032425-96f322155c80/go.mod h1:W2qfPLdMEmzOymqCFxb3vN+fjZT94CoWPCVPtpgxwdo= -github.com/yu-org/yu v0.0.0-20240313145627-f19c30d5b5ba h1:28BKXCi77oSEGc3gxkHxA0KvEo+PlArOWuqkxquXUDw= -github.com/yu-org/yu v0.0.0-20240313145627-f19c30d5b5ba/go.mod h1:W2qfPLdMEmzOymqCFxb3vN+fjZT94CoWPCVPtpgxwdo= -github.com/yu-org/yu v0.0.0-20240315043453-1f8f3092c6fd h1:Bb4n+5jIc+WsJvk7BntTR5wIu01fHe+BasAFUSbz8eY= -github.com/yu-org/yu v0.0.0-20240315043453-1f8f3092c6fd/go.mod h1:W2qfPLdMEmzOymqCFxb3vN+fjZT94CoWPCVPtpgxwdo= -github.com/yu-org/yu v0.0.0-20240320054640-156a6118f08b h1:eqXeQDuE26N/BGkPbgtfdhVs1Y6iO/beedAPy49rOgk= -github.com/yu-org/yu v0.0.0-20240320054640-156a6118f08b/go.mod h1:W2qfPLdMEmzOymqCFxb3vN+fjZT94CoWPCVPtpgxwdo= github.com/yu-org/yu v0.0.0-20240320055213-cb9a4b6cf999 h1:S+phH6kSI3Opbhr2AvJMu38SAbUqOlV3ayI0U9Ak54o= github.com/yu-org/yu v0.0.0-20240320055213-cb9a4b6cf999/go.mod h1:W2qfPLdMEmzOymqCFxb3vN+fjZT94CoWPCVPtpgxwdo= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=