Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
shunjizhan committed Sep 18, 2024
1 parent 6cae021 commit 1850b68
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
# files: ./coverage/lcov.info
file: coverage/lcov.info
fail_ci_if_error: true


4 changes: 3 additions & 1 deletion c8rc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@
"exclude": ["**/*.test.ts"],
"reporter": ["html", "text", "lcov"],
"all": true,
"require": ["ts-node/register"]
"require": ["ts-node/register"],
"report-dir": "./coverage",
"output": "./coverage/lcov.info"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"start:coverage": "pm2 start --name relayer 'c8 node -r ts-node/register src/index.ts' && ./scripts/health-check.sh",
"stop:coverage": "pm2 stop relayer && pm2 delete relayer",
"start:test-infra": "docker compose up",
"test": "vitest src/__tests__/*.test.ts --singleThread --run",
"test": "vitest src/__tests__/xcm.test.ts --singleThread --run",
"test:coverage": "yarn start:coverage && yarn test && yarn stop:coverage",
"test:ci": "yarn start:test-infra -d; yarn test:coverage",
"clean": "rm -rf coverage .nyc_output dist/"
Expand Down

0 comments on commit 1850b68

Please sign in to comment.