Skip to content

Commit

Permalink
Merge pull request #464 from LIT-Protocol/staging/v6
Browse files Browse the repository at this point in the history
Staging/v6
  • Loading branch information
Bean authored Jun 3, 2024
2 parents 6af6a7c + 050e708 commit b9f46e5
Show file tree
Hide file tree
Showing 284 changed files with 37,214 additions and 11,560 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- master
- staging/**
- feat/**
- feature/**
jobs:
master:
runs-on: ubuntu-latest
Expand All @@ -28,16 +29,16 @@ jobs:
with:
main-branch-name: 'master'
- name: Build
run: yarn build
run: yarn build:dev
- name: Run Unit tests
run: yarn tools --test --unit
e2e-connection:
runs-on: ubuntu-latest
timeout-minutes: 30
env:
NETWORK: cayenne
MINT_NEW: true
DEBUG: true
MAX_ATTEMPTS: 3
steps:
- name: Checkout repo
uses: actions/checkout@v2
Expand All @@ -46,12 +47,12 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
node-version: '20'
- name: Install project dependencies
run: yarn install
- name: Build packages
id: build
run: yarn build
run: yarn build:dev
- name: Run End to End Tests
if: steps.build.outputs.exit_code == 0
run: yarn test:e2e:node --group=connection --group=lit-actions --group=pkp-auth-method --group=pkp-ethers --group=pkp-encryption-decryption --group=pkp-session-sigs --group=lit-auth-client
run: yarn test:local --filter=testUseEoaSessionSigsToExecuteJsSigning,testUseEoaSessionSigsToPkpSign,testUsePkpSessionSigsToExecuteJsSigning,testUsePkpSessionSigsToPkpSign,testUseValidLitActionCodeGeneratedSessionSigsToPkpSign,testUseValidLitActionCodeGeneratedSessionSigsToExecuteJsSigning,testDelegatingCapacityCreditsNFTToAnotherWalletToExecuteJs,testEthAuthSigToEncryptDecryptString --exclude=Parallel
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,6 @@ storage.test.db
.nx

.yalc

local-tests/build
# local-tests/setup/networkContext.json
17 changes: 5 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<h1>Lit Protocol Javascript/Typescript SDK V5.1.0</h1>
<h1>Lit Protocol Javascript/Typescript SDK V6.0.0</h1>

<img src="https://i.ibb.co/p2xfzK1/Screenshot-2022-11-15-at-09-56-57.png">
<br/>
Expand Down Expand Up @@ -154,15 +154,10 @@ yarn nx run nodejs:serve
yarn test:unit
```

## Run E2E tests
## Run E2E tests in nodejs

```
// -- web
yarn test:e2e:web
// -- node
yarn test:e2e:node
yarn test:local
```

# Advanced
Expand Down Expand Up @@ -248,7 +243,7 @@ You must have at least nodejs v18 to do this.

3. Build all the packages with `yarn build`

4. Run the unit tests with `yarn test:unit` & e2e node tests `yarn test:e2e:nodejs` locally & ensure that they pass
4. Run the unit tests with `yarn test:unit` & e2e node tests `yarn test:local` locally & ensure that they pass

5. Update the docs with `yarn gen:docs --push`

Expand All @@ -272,9 +267,7 @@ yarn node ./tools/scripts/pub.mjs --tag serrano-jalapeno
The following will serve the react testing app and launch the cypress e2e testing after

```sh
yarn test:e2e:web
or
yarn test:e2e:node
yarn test:local
```

### Environments
Expand Down
Binary file removed bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion cypress/e2e/spec.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ describe('Lit Action', () => {
url: 'https://cayenne.litgateway.com:7371/web/execute',
data,
};
const res = await savedParams.litNodeClient.sendCommandToNode(reqBody);
const res = await savedParams.litNodeClient._sendCommandToNode(reqBody);
expect(res).to.have.property('success', true);
});

Expand Down
33 changes: 0 additions & 33 deletions e2e-nodejs/00-setup.mjs

This file was deleted.

55 changes: 0 additions & 55 deletions e2e-nodejs/0_manual-tests/test-block-has-update-after-exp.mjs

This file was deleted.

196 changes: 0 additions & 196 deletions e2e-nodejs/0_manual-tests/test-concurrent-signing-2-parallel-sigs.mjs

This file was deleted.

Loading

0 comments on commit b9f46e5

Please sign in to comment.