[Lynex] setup adapter to pull data from 14 nov to end of program #497
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: 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/checkout@v2.1.0 | |
- 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/checkout@v2.1.0 | |
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 |