From 73f28c679434ae1e83322522c24ac98eb3d0a492 Mon Sep 17 00:00:00 2001 From: Shunji Zhan Date: Wed, 18 Sep 2024 00:33:19 +0800 Subject: [PATCH] update ci --- .github/workflows/test.yml | 1 + .nycrc | 2 +- package.json | 8 ++++---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ab7d191..a44ff3f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,5 +33,6 @@ jobs: uses: codecov/codecov-action@v3 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + files: .coverage/lcov.info diff --git a/.nycrc b/.nycrc index c205945..94e2b3f 100644 --- a/.nycrc +++ b/.nycrc @@ -7,5 +7,5 @@ "sourceMap": true, "instrument": true, "require": ["ts-node/register"], - "report-dir": ".coverage-e2e" + "report-dir": ".coverage" } diff --git a/package.json b/package.json index 08f13f3..027fc32 100644 --- a/package.json +++ b/package.json @@ -10,15 +10,15 @@ "repository": "https://github.com/AcalaNetwork/wormhole-relayer/", "scripts": { "build": "tsc", + "dev": "ts-node-dev --respawn src/index.ts | pino-pretty --singleLine --colorize --ignore time,hostname,ip", "start": "node dist/index.js", "start:coverage": "pm2 start --name relayer 'nyc 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", - "dev": "ts-node-dev --respawn src/index.ts | pino-pretty --singleLine --colorize --ignore time,hostname,ip", "test": "vitest src/__tests__/*.test.ts --singleThread --run", - "test:e2e": "yarn start:coverage && yarn test && yarn stop:coverage", - "test:ci": "yarn start:test-stack; yarn test:coverage", - "clean": "rm -rf .coverage-e2e .nyc_output dist/" + "test:coverage": "yarn start:coverage && yarn test && yarn stop:coverage", + "test:ci": "yarn start:test-infra; yarn test:coverage", + "clean": "rm -rf .coverage .nyc_output dist/" }, "dependencies": { "@acala-network/api": "~6.0.4",