Skip to content

Commit ff9421c

Browse files
authored
ci: upload coverage to coveralls (#446)
* ci: upload coverage to coveralls * fix path to lcov file
1 parent 9ef7649 commit ff9421c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
matrix:
2121
os: [ubuntu-latest]
22-
node: ['18']
22+
node: ["18"]
2323

2424
runs-on: ${{ matrix.os }}
2525

@@ -34,3 +34,8 @@ jobs:
3434
run: |
3535
npm ci
3636
npm run ci
37+
- name: Upload coverage results to Coveralls
38+
uses: coverallsapp/github-action@master
39+
with:
40+
github-token: ${{ secrets.GITHUB_TOKEN }}
41+
path-to-lcov: ./coverage/lcov.info

vitest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export default defineConfig({
1111
'./example/*',
1212
'./docs/*',
1313
],
14+
reporter: ['lcov']
1415
},
1516
environment: 'jsdom',
1617
},

0 commit comments

Comments
 (0)