From 437fb81b29f5e6bf5a33ab7630ccca272badf989 Mon Sep 17 00:00:00 2001 From: Artem Kovalchuk Date: Mon, 12 Feb 2024 17:24:45 +0200 Subject: [PATCH] fix test workflow --- .github/actions/testSubgraph/action.yml | 10 ++++++++-- subgraph/.gitignore | 3 +-- subgraph/subgraph.yaml | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/actions/testSubgraph/action.yml b/.github/actions/testSubgraph/action.yml index 2d174c95..e3161463 100644 --- a/.github/actions/testSubgraph/action.yml +++ b/.github/actions/testSubgraph/action.yml @@ -9,12 +9,18 @@ runs: with: node-version: "16" + - name: Install Git + shell: bash + run: | + apt-get update + apt-get install -y git + - name: Install subgraph dependencies working-directory: ./subgraph shell: bash - run: npm install + run: yarn install - name: Run test working-directory: ./subgraph shell: bash - run: npm run test + run: yarn run test diff --git a/subgraph/.gitignore b/subgraph/.gitignore index 9378c031..b939a292 100644 --- a/subgraph/.gitignore +++ b/subgraph/.gitignore @@ -1,9 +1,8 @@ generated old_subgraph node_modules -schema.graphql .bin tests/.bin .idea -.vscode \ No newline at end of file +.vscode diff --git a/subgraph/subgraph.yaml b/subgraph/subgraph.yaml index 8e139c16..81dd6f39 100644 --- a/subgraph/subgraph.yaml +++ b/subgraph/subgraph.yaml @@ -1,6 +1,6 @@ specVersion: 0.0.5 schema: - file: ./schema.graphql + file: ./src/schema.graphql dataSources: - kind: ethereum name: ScannerRegistry