Skip to content

Commit

Permalink
workflows/ci: Use CI specific testing commands
Browse files Browse the repository at this point in the history
  • Loading branch information
fordN committed Jun 16, 2022
1 parent 0848379 commit 2195d51
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- run: yarn install --frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
- run: yarn test
- run: yarn test:ci
env:
POSTGRES_TEST_HOST: localhost
POSTGRES_TEST_DATABASE: indexer_tests
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"prepare": "lerna run prepare",
"release": "./scripts/release.sh",
"test": "lerna --concurrency 1 run test --stream --ignore @graphprotocol/indexer-service",
"test:ci": "lerna --concurrency 1 run test:ci --stream --ignore @graphprotocol/indexer-service",
"update-common-ts": "./scripts/update-common-ts.sh 1.8.3",
"clean": "rm -rf ./node_modules && lerna run clean",
"compile": "lerna run compile"
Expand Down
3 changes: 2 additions & 1 deletion packages/indexer-agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"compile": "tsc",
"prepare": "yarn format && yarn lint && yarn compile",
"start": "node ./dist/index.js start",
"test": "jest --runInBand --detectOpenHandles --passWithNoTests --verbose",
"test": "jest --colors --verbose",
"test:ci": "jest --verbose --ci",
"clean": "rm -rf ./node_modules ./dist ./tsconfig.tsbuildinfo",
"migrator:pending": "node src/db/cli/migrator pending",
"migrator:executed": "node src/db/cli/migrator executed",
Expand Down
3 changes: 2 additions & 1 deletion packages/indexer-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"prepare": "yarn format && yarn lint && yarn compile",
"disputes": "yarn prepare && ./dist/cli.js indexer disputes get",
"clean": "rm -rf ./node_modules ./dist ./tsconfig.tsbuildinfo",
"test": "jest --colors --verbose --detectOpenHandles",
"test": "jest --colors --verbose --runInBand",
"test:ci": "jest --verbose --runInBand --ci",
"test:debug": "LOG_LEVEL=debug jest --runInBand --detectOpenHandles --verbose --forceExit",
"test:watch": "jest --watch --detectOpenHandles --verbose"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/indexer-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"lint": "eslint . --ext .ts,.tsx --fix",
"compile": "tsc",
"prepare": "yarn format && yarn lint && yarn compile",
"test": "jest --runInBand --detectOpenHandles --forceExit",
"test": "jest --colors --verbose --forceExit --runInBand",
"test:ci": "jest --verbose --runInBand --forceExit --ci",
"test:watch": "jest --runInBand --detectOpenHandles --watch --passWithNoTests --verbose",
"clean": "rm -rf ./node_modules ./dist ./tsconfig.tsbuildinfo"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import {
uniqueAllocationID,
upsertIndexingRule,
} from '@graphprotocol/indexer-common'

import {
BigNumber,
BigNumberish,
Expand Down
3 changes: 2 additions & 1 deletion packages/indexer-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"lint": "eslint .",
"prepare": "yarn format && yarn lint",
"install": "yarn pull-or-build",
"test": "jest --detectOpenHandles --verbose",
"test": "jest --colors --verbose --forceExit",
"test:ci": "jest --verbose --ci",
"clean": "rm -rf ./node_modules ./binary ./build ./coverage ./native/target ./native/artifacts.json ./native/index.node"
},
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion packages/indexer-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"compile": "tsc",
"prepare": "yarn format && yarn lint && yarn compile",
"start": "node ./dist/index.js start",
"test": "jest --passWithNoTests --detectOpenHandles --verbose --forceExit",
"test": "jest --colors --verbose --forceExit",
"test:ci": "jest --verbose --forceExit --ci",
"test:watch": "jest --watch --passWithNoTests --detectOpenHandles --verbose",
"clean": "rm -rf ./node_modules ./dist ./tsconfig.tsbuildinfo"
},
Expand Down

0 comments on commit 2195d51

Please sign in to comment.