diff --git a/.changeset/tricky-pumas-sip.md b/.changeset/tricky-pumas-sip.md new file mode 100644 index 000000000..fe2bbb951 --- /dev/null +++ b/.changeset/tricky-pumas-sip.md @@ -0,0 +1,5 @@ +--- +'@graphprotocol/graph-cli': patch +--- + +fix bug with loud errors in `graph test` diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3775db14e..c08326b51 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,7 @@ on: push: branches: - 'main' - pull_request_target: + pull_request: jobs: lint: diff --git a/packages/cli/package.json b/packages/cli/package.json index 9783fb8a3..0d89c0574 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -3,6 +3,11 @@ "version": "0.94.0", "type": "module", "description": "CLI for building for and deploying to The Graph", + "repository": { + "type": "git", + "url": "https://github.com/graphprotocol/graph-tooling.git", + "directory": "packages/cli" + }, "license": "(Apache-2.0 OR MIT)", "engines": { "node": ">=20.18.1" @@ -75,11 +80,6 @@ "access": "public", "provenance": true }, - "repository": { - "type": "git", - "url": "https://github.com/graphprotocol/graph-tooling.git", - "directory": "packages/cli" - }, "oclif": { "bin": "graph", "commands": "./dist/commands", diff --git a/packages/cli/src/commands/test.ts b/packages/cli/src/commands/test.ts index d8e6fba03..878c3c4e9 100644 --- a/packages/cli/src/commands/test.ts +++ b/packages/cli/src/commands/test.ts @@ -113,9 +113,9 @@ export default class TestCommand extends Command { } if (opts.docker) { - runDocker.bind(this)(datasource, opts); + await runDocker.bind(this)(datasource, opts); } else { - runBinary.bind(this)(datasource, opts); + await runBinary.bind(this)(datasource, opts); } } } @@ -190,7 +190,7 @@ async function runBinary( const child = spawn(binPath, args, { stdio: 'inherit' }); const [code] = await events.once(child, 'exit'); if (code !== 0) { - this.error('Matchstick failed', { exit: 1 }); + this.error('Matchstick exited with an error', { exit: 1 }); } } diff --git a/packages/ts/package.json b/packages/ts/package.json index 709a6af60..2750dee4a 100644 --- a/packages/ts/package.json +++ b/packages/ts/package.json @@ -2,6 +2,11 @@ "name": "@graphprotocol/graph-ts", "version": "0.37.0", "description": "TypeScript/AssemblyScript library for writing subgraph mappings for The Graph", + "repository": { + "type": "git", + "url": "https://github.com/graphprotocol/graph-tooling.git", + "directory": "packages/ts" + }, "main": "index.ts", "module": "index.ts", "types": "index.ts", @@ -11,16 +16,11 @@ "lint": "prettier -c **/*.{js,mjs,ts}", "test": "node test/test.mjs" }, + "dependencies": { + "assemblyscript": "0.27.31" + }, "publishConfig": { "access": "public", "provenance": true - }, - "repository": { - "type": "git", - "url": "https://github.com/graphprotocol/graph-tooling.git", - "directory": "packages/ts" - }, - "dependencies": { - "assemblyscript": "0.27.31" } }