Skip to content

build(deps): bump @hashgraph/sdk from 2.75.0 to 2.78.0 in /dapp-example #11069

build(deps): bump @hashgraph/sdk from 2.75.0 to 2.78.0 in /dapp-example

build(deps): bump @hashgraph/sdk from 2.75.0 to 2.78.0 in /dapp-example #11069

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@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit
- name: Setup node
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: 22
- name: Checkout repo
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- 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