Skip to content

linehub fix for blockNumbers older then subgraph block start #479

linehub fix for blockNumbers older then subgraph block start

linehub fix for blockNumbers older then subgraph block start #479

Workflow file for this run

name: Test getUserTVLByBlock method
on:
pull_request:
paths:
- '**/' # Listen for changes in any directory
jobs:
test:
runs-on: ubuntu-latest
env:
FOLDER_NAME: ""
steps:
- uses: actions/[email protected]
- uses: jitterbit/get-changed-files@v1
id: abc
with:
format: space-delimited
token: ${{ secrets.GITHUB_TOKEN }}
- name: Extract folder name
run: |
added="${{ steps.abc.outputs.added }}"
folder=$(echo "$added" | awk -F/ '{print $2}' | sort -u)
echo "FOLDER_NAME=$folder" >> $GITHUB_ENV
- name: Print folder name
run: |
echo "Folder name: $FOLDER_NAME"
- name: Checkout PR
uses: actions/[email protected]
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Run command from protocol folder
run: |
cd adapters
cd $FOLDER_NAME
npm install
npm run compile
cd ..
npm install
npm run start $FOLDER_NAME