Skip to content

docs: Update OpenRPC JSON #11675

docs: Update OpenRPC JSON

docs: Update OpenRPC JSON #11675

Workflow file for this run

name: Subgraph Tests
on:
pull_request:
branches: [main, release/**]
push:
branches: [main, release/**]
tags: [v*]
concurrency:
group: pr-checks-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read
jobs:
subgraph-workflow:
runs-on: hiero-smart-contracts-linux-medium
permissions:
contents: write
defaults:
run:
working-directory: ./tools/subgraph-example/
steps:
- name: Harden Runner
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
with:
egress-policy: audit
- name: Setup node
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: 22
- name: Checkout repo
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Install dependencies
run: npm ci
- name: Create .env file
run: cp .env.example .env
- name: Run local node
run: npx hedera start -d
timeout-minutes: 5
- name: Compile contracts
run: npx hardhat compile
- name: Deploy and interact with contracts
run: npx hardhat prepare
- name: Generate types
run: npm run graph-codegen
- name: Start local graph-node
env:
IPFS_PROFILE: test
run: npm run graph-local -- --detach
- name: Sleep for 20 seconds
run: sleep 20s
shell: bash
- name: Create subgraph
run: npm run create-local
- name: Deploy subgraph
run: npm run deploy-local -- --network local --version-label 0.0.1
- name: Sleep for 10 seconds (allow time to index past events following new sub-graph deployment)
run: sleep 10s
shell: bash
- name: Run the tests
run: npx hardhat test