Skip to content

Bump versions for v0.49.0-SNAPSHOT #4756

Bump versions for v0.49.0-SNAPSHOT

Bump versions for v0.49.0-SNAPSHOT #4756

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
jobs:
subgraph-workflow:
runs-on: ubuntu-latest
permissions:
contents: write
defaults:
run:
working-directory: ./tools/subgraph-example/
steps:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18.15
- name: Checkout repo
uses: actions/checkout@v3
- 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
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