Skip to content

Nabla/feat export csv v2 #1

Nabla/feat export csv v2

Nabla/feat export csv v2 #1

name: Validate Other Market Data
on:
pull_request:
paths:
- 'public/configs/otherMarketData.json'
- 'scripts/validate-other-market-data.ts'
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up pnpm
uses: dydxprotocol/setup-pnpm@v1
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm
- name: Install dependencies
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
pnpm install --loglevel warn
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.21
- name: Checkout v4-chain repo
uses: actions/checkout@v3
with:
repository: 'skip-mev/v4-chain'
ref: '86b361becee776c36dd9c8ee4b96ada17b913109'
path: 'v4-chain'
- name: Start v4 localnet
run: |
cd v4-chain/protocol
sed -i '/\.consensus\.timeout_commit.*-v '\''5s'\''/s/5s/1s/' testing/testnet-local/local.sh
echo "Building v4-chain/protocol..."
make build
echo "Starting localnet..."
DOCKER_BUILDKIT=1 make localnet-startd
- name: Get diff of otherMarketData.json
run: |
git fetch origin
git diff remotes/origin/main -- public/configs/otherMarketData.json > otherMarketDiff.txt
- name: Validate other market data
env:
DIFF: otherMarketDiff.txt
run: pnpx tsx scripts/validate-other-market-data.ts