diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4caec99..bfc7c69 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,18 +12,18 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: pnpm/action-setup@v3 - name: Install pnpm + - name: Install pnpm + uses: pnpm/action-setup@v3 with: version: 8 - - uses: actions/setup-node@v4 - name: Install Node.js + - name: Install Node.js + uses: actions/setup-node@v4 with: node-version: 20 cache: 'pnpm' - - name: Install dependencies + - name: Install Dependencies run: pnpm install --frozen-lockfile - name: Lint @@ -36,7 +36,6 @@ jobs: uses: irongut/CodeCoverageSummary@v1.3.0 with: filename: coverage/cobertura-coverage.xml - badge: true - name: Build run: pnpm build diff --git a/vitest.config.ts b/vitest.config.ts index 209bf42..2668838 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -4,8 +4,9 @@ export default defineConfig({ test: { coverage: { provider: 'v8', - reporter: ['cobertura', 'text'], + reporter: ['cobertura', 'json', 'json-summary', 'text'], reportsDirectory: '../coverage', + reportOnFailure: true, }, reporters: process.env.GITHUB_ACTIONS ? ['dot', 'github-actions'] : ['dot'],