Skip to content

Commit 032c6ff

Browse files
authored
Update ci.yml
1 parent 8b51c09 commit 032c6ff

1 file changed

Lines changed: 0 additions & 29 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -17,35 +17,6 @@ jobs:
1717
with:
1818
node-version: 18
1919

20-
- name: Initialize clean package.json
21-
run: |
22-
npm init -y
23-
npm install vitest@1.6.1 @vitest/coverage-v8@1.6.1
24-
# Optional: only install Codecov bundle plugin if you want bundle analysis:
25-
# npm install @codecov/vite-plugin@latest
26-
27-
- name: Add test & build scripts manually
28-
run: |
29-
jq '.scripts.test="vitest run --coverage"' package.json > tmp.json && mv tmp.json package.json
30-
jq '.scripts.build="vite build"' package.json > tmp.json && mv tmp.json package.json
31-
32-
- name: Create vitest.config.ts
33-
run: |
34-
echo "import { defineConfig } from 'vitest/config'
35-
export default defineConfig({
36-
test: {
37-
include: ['app/**/*.test.js'],
38-
coverage: {
39-
provider: 'v8', # Use the V8 coverage provider for modern JS
40-
reporters: ['lcov', 'text', 'json', 'html'], # Formats for coverage output
41-
reportDir: 'coverage/' # Ensure coverage reports go to the lcov-report directory
42-
},
43-
reporters: [
44-
'default',
45-
['junit', { outputFile: 'junit.xml' }] # Optional: For CI compatibility, include JUnit output
46-
]
47-
}
48-
})" > vitest.config.ts
4920

5021

5122
# Uncomment this block if you eventually want bundle analysis enabled again:

0 commit comments

Comments
 (0)