fix: masks ip address in request details passed as argument to MN client #7393
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: 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: smart-contracts-linux-medium | |
permissions: | |
contents: write | |
defaults: | |
run: | |
working-directory: ./tools/subgraph-example/ | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0 | |
with: | |
egress-policy: audit | |
- name: Setup node | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version: 20 | |
- name: Checkout repo | |
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- 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 |