diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bf84c14..1f3aee5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,10 +24,10 @@ jobs: version: latest - name: Run Biome run: biome ci . - - run: pnpm test:coverage - - run: pnpm test:report + - name: Run tests + run: pnpm cov - name: Coveralls uses: coverallsapp/github-action@master with: github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: ./coverage.lcov + path-to-lcov: ./coverage/lcov.info diff --git a/package.json b/package.json index c7f35af..91442e2 100644 --- a/package.json +++ b/package.json @@ -20,8 +20,7 @@ "scripts": { "build": "tsc -p tsconfig.build.json", "test": "tsx --test src/*.test.ts", - "test:coverage": "c8 --include=src pnpm test", - "test:report": "c8 report --reporter=text-lcov > coverage.lcov", + "cov": "c8 -r lcov pnpm test", "lint": "biome lint .", "format": "biome format .", "check": "biome check ."