test vaults and reserve indexing #33
Workflow file for this run
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: Vaults and Reserve Indexing | |
on: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Start A3P container | |
run: docker compose --profile ci up -d a3p | |
- run: corepack enable | |
shell: bash | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: yarn | |
- name: Install dependencies | |
run: yarn install | |
- name: Start subql indexer | |
env: | |
AGORIC_NET: ci | |
run: yarn dev | |
- name: Print initial logs of all containers | |
run: | | |
echo "Fetching initial logs for all containers..." | |
containers=$(docker ps --format '{{.ID}}') | |
for container in $containers; do | |
echo "Fetching initial logs for container $container..." | |
docker logs $container | |
done | |
- name: Set Execute Permission for All Scripts | |
run: chmod +x ./scripts/*.mjs | |
- name: Wait for GraphQL server | |
run: sleep 60 | |
- name: Test Vaults | |
run: ./scripts/validateData.mjs | |
env: | |
entity: vaults | |
blockHeight: 742 | |
apiUrl: 'http://localhost:3000/' | |
# - name: Test VaultStatesDailies | |
# run: ./scripts/validateData.mjs | |
# env: | |
# entity: vaultStatesDailies | |
# blockHeight: 742 | |
# apiUrl: 'http://localhost:3000/' | |
- name: Test VaultManagerGovernance | |
run: ./scripts/validateData.mjs | |
env: | |
entity: vaultManagerGovernances | |
blockHeight: 1212 | |
apiUrl: 'http://localhost:3000/' | |
- name: Test VaultManagerMetrics | |
run: ./scripts/validateData.mjs | |
env: | |
entity: vaultManagerMetrics | |
blockHeight: 1212 | |
apiUrl: 'http://localhost:3000/' | |
- name: Test VaultManagerMetricsDaily | |
run: ./scripts/validateData.mjs | |
env: | |
entity: vaultManagerMetricsDailies | |
blockHeight: 1212 | |
apiUrl: 'http://localhost:3000/' | |
- name: Test ReserveMetrics | |
run: ./scripts/validateData.mjs | |
env: | |
entity: reserveMetrics | |
blockHeight: 1212 | |
apiUrl: 'http://localhost:3000/' | |
- name: Test ReserveAllocationMetrics | |
run: ./scripts/validateData.mjs | |
env: | |
entity: reserveAllocationMetrics | |
blockHeight: 1212 | |
apiUrl: 'http://localhost:3000/' | |
- name: Test ReserveAllocationMetricsDaily | |
run: ./scripts/validateData.mjs | |
env: | |
entity: reserveAllocationMetricsDailies | |
blockHeight: 1212 | |
apiUrl: 'http://localhost:3000/' |