@@ -39,11 +39,10 @@ jobs:
3939 run : yarn build:dev
4040 - name : Run Unit tests
4141 run : yarn tools --test --unit
42- integration-tests :
42+ datil- integration-tests :
4343 runs-on : ubuntu-latest
4444 timeout-minutes : 30
4545 env :
46- DATIL_COMMIT_HASH : ae3c20e07eb933b61073689b95f56867c03de252
4746 NAGA_COMMIT_HASH : 16547aa747fbf1a20faf1aa1a0da1c6f54737ff3
4847 steps :
4948 - name : Checkout repo
@@ -53,16 +52,84 @@ jobs:
5352 - name : Checkout Lit Actions
5453 uses : actions/checkout@v4
5554 id : checkout
56- with :
55+ with :
56+ fetch-depth : 0
57+ repository : LIT-Protocol/lit-assets
58+ ref : ${{env.DATIL_COMMIT_HASH}}
59+ token : ${{secrets.GH_PAT}}
60+ path : ${{ github.workspace }}/lit-assets/
61+ submodules : false
62+ sparse-checkout : |
63+ blockchain
64+ rust/lit-node
65+ - name : Check LA dir
66+ run : ls -la ${{github.workspace}}/lit-assets
67+ - name : Install LA Blockchain Dependencies
68+ run : npm i
69+ working-directory : ${{github.workspace}}/lit-assets/blockchain/contracts
70+ - name : Docker login
71+ id : login
72+ run : docker login ghcr.io/ -u ${{secrets.GH_USER}} --password ${{secrets.GH_PAT}}
73+ - name : Pull Shiva Container
74+ id : shiva-pull
75+ run : docker pull ghcr.io/lit-protocol/shiva:latest
76+ - name : Run Shiva Container
77+ id : shiva-runner
78+ run : docker run -d -m 32g -p 8000:8000 -p 8545:8545 -p 7470:7470 -p 7471:7471 -p 7472:7472 -p 7473:7473 -p 7474:7474 -p 7475:7475 -v ${{github.workspace}}/lit-assets:/data -e GH_PAT=${{secrets.GH_PAT}} -e HASH=$DATIL_COMMIT_HASH -e IPFS_API_KEY=${{secrets.IPFS_API_KEY}} --name shiva ghcr.io/lit-protocol/shiva:latest
79+ - name : Set up Node.js
80+ uses : actions/setup-node@v3
81+ with :
82+ node-version : ' 20'
83+ 84+ with :
85+ # Optional version of wasm-pack to install(eg. 'v0.9.1', 'latest')
86+ version : ' latest'
87+ - name : Install project dependencies
88+ run : yarn --frozen-lockfile
89+ - uses : nrwl/nx-set-shas@v3
90+ with :
91+ main-branch-name : ' master'
92+ - name : Build packages
93+ id : build
94+ run : yarn build:dev
95+ - name : Copy ENV File
96+ run : cp .env.ci .env
97+ - name : Run End to End Tests
98+ if : steps.build.outputs.exit_code == 0
99+ run : yarn test:local --filter=testUseEoaSessionSigsToExecuteJsSigning,testUseEoaSessionSigsToPkpSign,testUsePkpSessionSigsToExecuteJsSigning,testUsePkpSessionSigsToPkpSign,testUseValidLitActionCodeGeneratedSessionSigsToPkpSign,testUseValidLitActionCodeGeneratedSessionSigsToExecuteJsSigning,testDelegatingCapacityCreditsNFTToAnotherWalletToExecuteJs,testEthAuthSigToEncryptDecryptString,testExecuteJsSignAndCombineEcdsa,testExecutJsDecryptAndCombine,testExecuteJsBroadcastAndCollect --exclude=Parallel
100+ - name : Get Container Logs
101+ if : always()
102+ run : docker logs shiva
103+ - name : Post Pull Shiva Container
104+ id : container-stop
105+ if : steps.shiva-pull.outputs.exit_code == 0
106+ run : docker stop shiva && docker rm shiva
107+ - name : Post Pull Shiva Image
108+ if : steps.shiva-pull.outputs.exit_code == 0
109+ run : docker rmi ghcr.io/lit-protocol/shiva
110+ naga-integration-tests :
111+ runs-on : ubuntu-latest
112+ timeout-minutes : 30
113+ env :
114+ NAGA_COMMIT_HASH : 16547aa747fbf1a20faf1aa1a0da1c6f54737ff3
115+ steps :
116+ - name : Checkout repo
117+ uses : actions/checkout@v2
118+ with :
119+ fetch-depth : 0
120+ - name : Checkout Lit Actions
121+ uses : actions/checkout@v4
122+ id : checkout
123+ with :
57124 fetch-depth : 0
58125 repository : LIT-Protocol/lit-assets
59126 ref : ${{env.NAGA_COMMIT_HASH}}
60127 token : ${{secrets.GH_PAT}}
61128 path : ${{ github.workspace }}/lit-assets/
62129 submodules : false
63130 sparse-checkout : |
64- blockchain
65- rust/lit-node
131+ blockchain
132+ rust/lit-node
66133 - name : Check LA dir
67134 run : ls -la ${{github.workspace}}/lit-assets
68135 - name : Install LA Blockchain Dependencies
73140 run : docker login ghcr.io/ -u ${{secrets.GH_USER}} --password ${{secrets.GH_PAT}}
74141 - name : Pull Shiva Container
75142 id : shiva-pull
76- run : docker pull ghcr.io/lit-protocol/shiva:latest
143+ run : docker pull ghcr.io/lit-protocol/shiva:latest
77144 - name : Run Shiva Container
78145 id : shiva-runner
79146 run : docker run -d -m 32g -p 8000:8000 -p 8545:8545 -p 7470:7470 -p 7471:7471 -p 7472:7472 -p 7473:7473 -p 7474:7474 -p 7475:7475 -v ${{github.workspace}}/lit-assets:/data -e GH_PAT=${{secrets.GH_PAT}} -e HASH=$NAGA_COMMIT_HASH -e IPFS_API_KEY=${{secrets.IPFS_API_KEY}} --name shiva ghcr.io/lit-protocol/shiva:latest
@@ -107,4 +174,4 @@ jobs:
107174 run : docker stop shiva && docker rm shiva
108175 - name : Post Pull Shiva Image
109176 if : steps.shiva-pull.outputs.exit_code == 0
110- run : docker rmi ghcr.io/lit-protocol/shiva
177+ run : docker rmi ghcr.io/lit-protocol/shiva
0 commit comments