Skip to content

Commit

Permalink
isolated test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ansonhkg committed Oct 25, 2024
1 parent d6f1cbf commit 4bcbfe3
Showing 1 changed file with 45 additions and 45 deletions.
90 changes: 45 additions & 45 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,24 +49,24 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Checkout Lit Actions
uses: actions/checkout@v4
id: checkout
with:
fetch-depth: 0
repository: LIT-Protocol/lit-assets
ref: ${{env.DATIL_COMMIT_HASH}}
token: ${{secrets.GH_PAT_FOR_SHIVA}}
path: ${{ github.workspace }}/lit-assets/
submodules: false
sparse-checkout: |
blockchain
rust/lit-node
- name: Check LA dir
run: ls -la ${{github.workspace}}/lit-assets
- name: Install LA Blockchain Dependencies
run: npm i
working-directory: ${{github.workspace}}/lit-assets/blockchain/contracts
# - name: Checkout Lit Actions
# uses: actions/checkout@v4
# id: checkout
# with:
# fetch-depth: 0
# repository: LIT-Protocol/lit-assets
# ref: ${{env.DATIL_COMMIT_HASH}}
# token: ${{secrets.GH_PAT_FOR_SHIVA}}
# path: ${{ github.workspace }}/lit-assets/
# submodules: false
# sparse-checkout: |
# blockchain
# rust/lit-node
# - name: Check LA dir
# run: ls -la ${{github.workspace}}/lit-assets
# - name: Install LA Blockchain Dependencies
# run: npm i
# working-directory: ${{github.workspace}}/lit-assets/blockchain/contracts
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
Expand All @@ -83,33 +83,33 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '20'
- uses: jetli/[email protected]
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 packages
id: build
run: yarn build:dev
- name: Copy ENV File
run: cp .env.ci .env
- 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
- name: Get Container Logs
if: always()
run: docker logs shiva
- name: Post Pull Shiva Container
id: container-stop
if: steps.shiva-pull.outputs.exit_code == 0
run: docker stop shiva && docker rm shiva
- name: Post Pull Shiva Image
if: steps.shiva-pull.outputs.exit_code == 0
run: docker rmi ghcr.io/lit-protocol/shiva
# - uses: jetli/[email protected]
# 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 packages
# id: build
# run: yarn build:dev
# - name: Copy ENV File
# run: cp .env.ci .env
# - 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
# - name: Get Container Logs
# if: always()
# run: docker logs shiva
# - name: Post Pull Shiva Container
# id: container-stop
# if: steps.shiva-pull.outputs.exit_code == 0
# run: docker stop shiva && docker rm shiva
# - name: Post Pull Shiva Image
# if: steps.shiva-pull.outputs.exit_code == 0
# run: docker rmi ghcr.io/lit-protocol/shiva
# ping-lit-configuration-guides:
# runs-on: ubuntu-latest
# # needs: [unit-tests, integration-tests] # Make sure this job runs after others complete
Expand Down

0 comments on commit 4bcbfe3

Please sign in to comment.