Skip to content

Commit

Permalink
Update CI (#28)
Browse files Browse the repository at this point in the history
* Update CI

* Update CI

* Update CI

* Update CI

* Update CI

* Cache more

* Update CI

* Update CI

* Disable go cache

* Disable go cache

* Disable go cache

* Disable go cache

* Disable go cache

* Disable go cache

* Disable go cache
  • Loading branch information
nordschesasa authored Apr 7, 2024
1 parent 2dbe694 commit 457e76a
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 10 deletions.
57 changes: 55 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,67 @@ jobs:
name: Build Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: 'recursive'

- uses: actions/setup-go@v3
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
8 changes: 0 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down

0 comments on commit 457e76a

Please sign in to comment.