From 92a1c820bdfbba82086b540a25344b3fb72baa56 Mon Sep 17 00:00:00 2001 From: vahid Date: Thu, 29 Aug 2024 02:51:32 +0330 Subject: [PATCH] hotfix codecov --- .github/workflows/cd.yml | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 51bc480..d2b814c 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -18,10 +18,10 @@ jobs: run: npm install -g pnpm - run: pnpm install - run: pnpm run ci - - uses: actions/upload-artifact@v2 + - uses: codecov/codecov-action@v4 with: - name: coverage - path: coverage + fail_ci_if_error: false + token: ${{ secrets.CODECOV_TOKEN }} deploy: needs: test diff --git a/package.json b/package.json index 6d14f65..e34fd32 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "lint": "eslint src/index.ts", "run:mongo": "mongodb-runner start -t replset --version 6.0 -- --port 27017", "stop:mongo": "mongodb-runner stop --all", - "ci": "npm run run:mongo && npx nyc --reporter=lcov npm test && npx codecov" + "ci": "npm run run:mongo && nyc --reporter=lcov --disable=gcov npm test" }, "repository": { "type": "git",