Skip to content

Commit

Permalink
fix(codecov): use cobertura (#8235)
Browse files Browse the repository at this point in the history
  • Loading branch information
ckohen authored Jul 5, 2022
1 parent eb9ad46 commit fd1c240
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions packages/actions/src/uploadCoverage/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,47 +6,47 @@ runs:
- name: Upload Builders Coverage
uses: codecov/codecov-action@v3
with:
files: ./packages/builders/coverage/lcov.info
files: ./packages/builders/coverage/cobertura-coverage.xml
flags: builders

- name: Upload Collection Coverage
uses: codecov/codecov-action@v3
with:
files: ./packages/collection/coverage/lcov.info
files: ./packages/collection/coverage/cobertura-coverage.xml
flags: collection

- name: Upload Discord.js Coverage
uses: codecov/codecov-action@v3
with:
files: ./packages/discord.js/coverage/lcov.info
files: ./packages/discord.js/coverage/cobertura-coverage.xml
flags: discord.js

- name: Upload Proxy Coverage
uses: codecov/codecov-action@v3
with:
files: ./packages/proxy/coverage/lcov.info
files: ./packages/proxy/coverage/cobertura-coverage.xml
flags: proxy

- name: Upload Rest Coverage
uses: codecov/codecov-action@v3
with:
files: ./packages/rest/coverage/lcov.info
files: ./packages/rest/coverage/cobertura-coverage.xml
flags: rest

- name: Upload Voice Coverage
uses: codecov/codecov-action@v3
with:
files: ./packages/voice/coverage/lcov.info
files: ./packages/voice/coverage/cobertura-coverage.xml
flags: voice

- name: Upload Website Coverage
uses: codecov/codecov-action@v3
with:
files: ./packages/website/coverage/lcov.info
files: ./packages/website/coverage/cobertura-coverage.xml
flags: website

- name: Upload Utilities Coverage
uses: codecov/codecov-action@v3
with:
files: ./packages/actions/coverage/lcov.info, ./packages/docgen/coverage/lcov.info, ./packages/scripts/coverage/lcov.info
files: ./packages/actions/coverage/cobertura-coverage.xml, ./packages/docgen/coverage/cobertura-coverage.xml, ./packages/scripts/coverage/cobertura-coverage.xml
flags: utilities
2 changes: 1 addition & 1 deletion packages/voice/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ module.exports = {
collectCoverage: true,
collectCoverageFrom: ['src/**/*.ts'],
coverageDirectory: 'coverage',
coverageReporters: ['text', 'lcov', 'clover'],
coverageReporters: ['text', 'lcov', 'cobertura'],
};
2 changes: 1 addition & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default defineConfig({
coverage: {
enabled: true,
all: true,
reporter: ['text', 'lcov', 'clover'],
reporter: ['text', 'lcov', 'cobertura'],
include: ['src'],
// All ts files that only contain types, due to ALL
exclude: ['**/*.{interface,type,d}.ts'],
Expand Down

0 comments on commit fd1c240

Please sign in to comment.