Skip to content

Commit ef72a1d

Browse files
authored
Merge pull request #87 from roninjin10/09-15-ci_Add_coverage
🧪 ci: Add coverage
2 parents 24934f6 + 2e3d044 commit ef72a1d

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.github/workflows/verify.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,10 @@ jobs:
9090
run: pnpm test:ci
9191
env:
9292
VITE_ANVIL_FORK_URL: ${{ secrets.VITE_ANVIL_FORK_URL }}
93-
93+
94+
- name: 'Report Coverage'
95+
if: always() # Also generate the report if tests are failing
96+
uses: davelosert/vitest-coverage-report-action@v2
97+
with:
98+
name: "op-viem"
99+
working-directory: "."

vitest.config.ts

+10-1
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,17 @@ export default defineConfig({
1111
outputFile: './bench/report.json',
1212
reporters: process.env.CI ? ['json'] : ['verbose'],
1313
},
14+
// if you are using the default rpc you will need these to not get rate limited
15+
// maxConcurrency: 1,
16+
// maxThreads: 1,
17+
// minThreads: 1,
1418
coverage: {
15-
reporter: process.env.CI ? ['lcov'] : ['text', 'json', 'html'],
19+
lines: 97.29,
20+
statements: 97.29,
21+
functions: 90.24,
22+
branches: 90.9,
23+
thresholdAutoUpdate: true,
24+
reporter: ['text', 'json-summary', 'json'],
1625
exclude: [
1726
'**/errors/utils.ts',
1827
'**/dist/**',

0 commit comments

Comments
 (0)