Skip to content

Commit

Permalink
special case test:ci
Browse files Browse the repository at this point in the history
  • Loading branch information
aroralanuk committed Jan 12, 2024
1 parent e6506aa commit 1464ad0
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ jobs:
key: ${{ github.sha }}

- name: Unit Tests
run: yarn test
run: yarn test:ci

metadata-check:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -291,4 +291,4 @@ jobs:
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
token: ${{ secrets.CODECOV_TOKEN }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"prettier": "yarn workspaces foreach --since --parallel run prettier",
"lint": "yarn workspaces foreach --since --parallel run lint",
"test": "yarn workspaces foreach --all --parallel run test",
"test:ci": "yarn workspaces foreach --all --parallel run test:ci",
"coverage": "yarn workspaces foreach --since --parallel run coverage",
"version:prepare": "yarn changeset version && yarn workspaces foreach --all --parallel run version:update && yarn install --no-immutable",
"version:check": "yarn changeset status",
Expand Down
4 changes: 2 additions & 2 deletions solidity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
"flatten": "./flatten.sh",
"storage": "./storage.sh",
"prettier": "prettier --write ./contracts ./test",
"test:local": "hardhat test && forge test -vvv",
"test": "hardhat test && forge test --no-match-test testFork -vvv",
"test": "hardhat test && forge test -vvv",
"test:ci": "hardhat test && forge test --no-match-test testFork -vvv",
"gas": "forge snapshot",
"gas-ci": "yarn gas --check --tolerance 2 || (echo 'Manually update gas snapshot' && exit 1)",
"slither": "slither ."
Expand Down
1 change: 1 addition & 0 deletions typescript/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"lint": "eslint . --ext .ts",
"prettier": "prettier --write ./src ./examples",
"test": "mocha --config .mocharc.json",
"test:ci": "yarn test",
"version:update": "echo \"export const VERSION = '$npm_package_version';\" > src/version.ts"
},
"files": [
Expand Down
1 change: 1 addition & 0 deletions typescript/helloworld/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"lint": "solhint contracts/**/*.sol && eslint . --ext .ts",
"prettier": "prettier --write ./contracts ./src",
"test": "hardhat test ./src/test/**/*.test.ts",
"test:ci": "yarn test",
"sync": "ts-node scripts/sync-with-template-repo.ts"
},
"types": "dist/src/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion typescript/infra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@
"announce": "hardhat announce --network localhost",
"node": "hardhat node",
"prettier": "prettier --write *.ts ./src ./config ./scripts ./test",
"test": "mocha --config ../sdk/.mocharc.json test/agents.test.ts"
"test": "mocha --config ../sdk/.mocharc.json test/agents.test.ts",
"test:ci": "yarn test"
},
"peerDependencies": {
"@ethersproject/abi": "*"
Expand Down
3 changes: 2 additions & 1 deletion typescript/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
"prepublishOnly": "yarn build",
"prettier": "prettier --write ./src",
"test": "yarn test:unit && yarn test:hardhat && yarn test:foundry",
"test:unit": "mocha --config .mocharc.json './src/**/*.test.ts' --exclude './src/**/SmartProvider.test.ts' './src/**/*.test.ts' --exit",
"test:ci": "yarn test:unit --exclude './src/**/SmartProvider.test.ts' && yarn test:hardhat && yarn test:foundry",
"test:unit": "mocha --config .mocharc.json './src/**/*.test.ts' --exit",
"test:hardhat": "hardhat test $(find ./src -name \"*.hardhat-test.ts\")",
"test:metadata": "ts-node ./src/test/metadata-check.ts",
"test:foundry": "./scripts/foundry-test.sh"
Expand Down
3 changes: 2 additions & 1 deletion typescript/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"clean": "rm -rf ./dist",
"check": "tsc --noEmit",
"prettier": "prettier --write ./src",
"test": "mocha --config .mocharc.json './src/**/*.test.ts'"
"test": "mocha --config .mocharc.json './src/**/*.test.ts'",
"test:ci": "yarn test"
},
"sideEffects": false,
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 1464ad0

Please sign in to comment.