-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #535 from LIT-Protocol/staging/v7
V7 Release
- Loading branch information
Showing
350 changed files
with
9,015 additions
and
24,309 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
node_modules | ||
packages/wasm/rust/**/* | ||
packages/wasm/src/pkg/* |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,6 +68,7 @@ | |
"type" | ||
] | ||
} | ||
] | ||
], | ||
"no-throw-literal": "error" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ on: | |
- staging/** | ||
- feat/** | ||
- feature/** | ||
- staging/** | ||
jobs: | ||
unit-tests: | ||
runs-on: warp-ubuntu-latest-x64-16x | ||
|
@@ -23,6 +24,12 @@ jobs: | |
with: | ||
node-version: '20' | ||
cache: 'yarn' | ||
- name: Install rust | ||
uses: dtolnay/[email protected] | ||
- 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 | ||
|
@@ -49,7 +56,7 @@ jobs: | |
fetch-depth: 0 | ||
repository: LIT-Protocol/lit-assets | ||
ref: ${{env.DATIL_COMMIT_HASH}} | ||
token: ${{secrets.GH_PAT}} | ||
token: ${{secrets.GH_PAT_FOR_SHIVA}} | ||
path: ${{ github.workspace }}/lit-assets/ | ||
submodules: false | ||
sparse-checkout: | | ||
|
@@ -62,17 +69,21 @@ jobs: | |
working-directory: ${{github.workspace}}/lit-assets/blockchain/contracts | ||
- name: Docker login | ||
id: login | ||
run: docker login ghcr.io/ -u ${{secrets.GH_USER}} --password ${{secrets.GH_PAT}} | ||
run: docker login ghcr.io/ -u ${{ github.actor }} --password ${{secrets.GH_PAT_FOR_SHIVA}} | ||
- name: Pull Shiva Container | ||
id: shiva-pull | ||
run: docker pull ghcr.io/lit-protocol/shiva:latest | ||
- name: Run Shiva Container | ||
id: shiva-runner | ||
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 | ||
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_FOR_SHIVA}} -e HASH=$DATIL_COMMIT_HASH -e IPFS_API_KEY=${{secrets.IPFS_API_KEY}} --name shiva ghcr.io/lit-protocol/shiva:latest | ||
- name: Set up Node.js | ||
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 | ||
|
@@ -95,4 +106,34 @@ jobs: | |
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 | ||
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 | ||
steps: | ||
- name: Get PR labels | ||
id: pr-labels | ||
uses: actions/github-script@v6 | ||
if: github.event_name == 'pull_request' | ||
with: | ||
script: | | ||
const labels = context.payload.pull_request.labels | ||
.map(label => label.name) | ||
.filter(name => name.startsWith('tag:')) | ||
.map(name => name.split(':')[1]); | ||
if (labels.length > 0) { | ||
core.setOutput('tag', labels[0]); | ||
} else { | ||
core.setOutput('skip', 'true'); | ||
} | ||
- name: Trigger dependencies bot in lit-configuration-guides | ||
if: steps.pr-labels.outputs.skip != 'true' | ||
run: | | ||
TAG="${{ steps.pr-labels.outputs.tag }}" | ||
curl -X POST \ | ||
-H "Accept: application/vnd.github.everest-preview+json" \ | ||
-H "Authorization: token ${{ secrets.GH_PAT_LIT_CONFIGURATION_GUIDES_REPO }}" \ | ||
https://api.github.com/repos/LIT-Protocol/lit-configuration-guides/dispatches \ | ||
-d "{\"event_type\":\"dependency_update\", \"client_payload\": {\"labels\": [\"$TAG\"]}}" | ||
env: | ||
GH_PAT_LIT_CONFIGURATION_GUIDES_REPO: ${{ secrets.GH_PAT_LIT_CONFIGURATION_GUIDES_REPO }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,12 @@ jobs: | |
with: | ||
node-version: '18' | ||
cache: 'yarn' | ||
- name: Install rust | ||
uses: dtolnay/[email protected] | ||
- 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 install | ||
- name: Lint | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,6 @@ | |
/packages/*/dist | ||
.nx | ||
tools | ||
**/*/dist | ||
/packages/wasm/rust/* | ||
/packages/wasm/src/pkg/* | ||
**/*/dist |
Oops, something went wrong.