Feature/lit 2382 js sdk refactor crypto and other wasm based modules #1793
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
- staging/** | |
- feat/** | |
- feature/** | |
jobs: | |
master: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
cache: 'yarn' | |
- name: Install rust | |
uses: dtolnay/rust-toolchain@1.76.0 | |
- uses: jetli/wasm-pack-action@v0.4.0 | |
with: | |
# Optional version of wasm-pack to install(eg. 'v0.9.1', 'latest') | |
version: 'latest' | |
- name: Install project dependencies | |
run: yarn --frozen-lockfile | |
- uses: nrwl/nx-set-shas@v3 | |
with: | |
main-branch-name: 'master' | |
- name: 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 | |
DEBUG: true | |
MAX_ATTEMPTS: 3 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- uses: jetli/wasm-pack-action@v0.4.0 | |
with: | |
# Optional version of wasm-pack to install(eg. 'v0.9.1', 'latest') | |
version: 'latest' | |
- name: Install project dependencies | |
run: yarn install | |
- name: Build packages | |
id: build | |
run: yarn build:dev | |
- name: Run End to End Tests | |
if: steps.build.outputs.exit_code == 0 | |
run: yarn test:local --filter=testUseEoaSessionSigsToExecuteJsSigning,testUseEoaSessionSigsToPkpSign,testUsePkpSessionSigsToExecuteJsSigning,testUsePkpSessionSigsToPkpSign,testUseValidLitActionCodeGeneratedSessionSigsToPkpSign,testUseValidLitActionCodeGeneratedSessionSigsToExecuteJsSigning,testDelegatingCapacityCreditsNFTToAnotherWalletToExecuteJs,testEthAuthSigToEncryptDecryptString,testExecuteJsSignAndCombineEcdsa,testExecutJsDecryptAndCombine,testExecuteJsBroadcastAndCollect --exclude=Parallel |