Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
Move coverageCheck.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Kathund committed Aug 31, 2024
1 parent 8f7a13a commit 95a8274
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion utils/checkCoverage.ts → .github/checkCoverage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { readFile } from 'fs';

function parseXMLFile(): Promise<any> {
return new Promise((resolve, reject) => {
readFile('./coverage/clover.xml', 'utf8', (err, data) => {
readFile('.github/coverageData.xml', 'utf8', (err, data) => {
if (err) {
reject('File Dose not exist!');
return;
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,8 @@ jobs:
HYPIXEL_KEY: ${{ secrets.HYPIXEL_KEY }}
run: pnpm test:coverage

- name: Move Coverage Data
run: mv coverage/clover.xml .github/coverageData.xml

- name: Check Coverage
run: npx tsx utils/checkCoverage.ts
run: npx tsx .github/checkCoverage.ts
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ oldreborn/
dist/
.eslintcache
coverage/
.github/coverageData.xml
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ dist/
.eslintcache
.git
.gitignore
coverage/
coverage/
.github/coverageData.xml

0 comments on commit 95a8274

Please sign in to comment.