Merge pull request #1117 from vector-im/michaelk/report_coverage

Push code coverage percentages to codecov.io.
This commit is contained in:
Michael Kaye 2023-06-23 12:52:41 +01:00 committed by GitHub
commit e446039d1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View file

@ -16,3 +16,7 @@ jobs:
run: "yarn install" run: "yarn install"
- name: Jest - name: Jest
run: "yarn run test" run: "yarn run test"
- name: Upload to codecov
uses: codecov/codecov-action@v3
with:
flags: unittests

View file

@ -118,6 +118,11 @@
"\\.(css|less|svg)+$": "identity-obj-proxy", "\\.(css|less|svg)+$": "identity-obj-proxy",
"^\\./IndexedDBWorker\\?worker$": "<rootDir>/test/mocks/workerMock.ts", "^\\./IndexedDBWorker\\?worker$": "<rootDir>/test/mocks/workerMock.ts",
"^\\./olm$": "<rootDir>/test/mocks/olmMock.ts" "^\\./olm$": "<rootDir>/test/mocks/olmMock.ts"
} },
"collectCoverage": true,
"coverageReporters": [
"text",
"cobertura"
]
} }
} }