Skip to content

ci: move checkout to testing workflow #2

ci: move checkout to testing workflow

ci: move checkout to testing workflow #2

Workflow file for this run

name: use-shiva
on:
workflow_call:
inputs:
commit-hash:
required: true
type: string
secrets:
token:
required: true
outputs: {}
jobs:
start-shiva:

Check failure on line 14 in .github/workflows/use-shiva.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/use-shiva.yml

Invalid workflow file

You have an error in your yaml syntax on line 14
steps:
- name: Checkout repo
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: ${{inputs.commit-hash}}
token: ${{secrets.GH_PAT}}
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: Setup Lit Bockchain Dependencies
uses: buildjet/setup-node@v3
with:
node-version: 20
cache: npm
cache-dependency-path: ${{ github.workspace }}/lit-assets/blockchain/contracts/package-lock.json
- name: Install Blockchain Deps
run: npm i
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}}
- 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