diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index a89f192..50061a6 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -5,14 +5,14 @@ on: pull_request: branches: - master - push: - branches: - - master + types: [opened, synchronize, reopened, closed] + +permissions: + contents: write jobs: Discord-Node-Coverage: runs-on: ubuntu-latest - # environment: coverage timeout-minutes: 2 steps: @@ -40,7 +40,17 @@ jobs: run: npm run coverage - name: Upload Coverage to Codecov - uses: codecov/codecov-action@v5 + uses: wjervis7/vitest-badge-action@v1 + if: success() || failure() with: - files: coverage/lcov.info - fail_ci_if_error: true + result-type: statements + badge-text: 'Coverage (Statements)' + badge-path: ./imgs/coverage.svg + upload-badge: false + + - name: Commit badge with merge + if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true + uses: stefanzweifel/git-auto-commit-action@v7 + with: + file_pattern: ./imgs/coverage.svg + commit_message: 'update with coverage badge' diff --git a/CODEOWNERS b/CODEOWNERS index 60b3c18..47de2bf 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -12,7 +12,7 @@ # Technical/Business Code Ownership /src/ @kevinthedang @JT2M0L3Y /tests/ @JT2M0L3Y -/.github/ @kevinthedang +/.github/ @kevinthedang @JT2M0L3Y # Docker Ownership Dockerfile @kevinthedang diff --git a/README.md b/README.md index dc4b0b0..abffe95 100644 --- a/README.md +++ b/README.md @@ -5,9 +5,8 @@
-
-
+
## About/Goals
diff --git a/vitest.config.ts b/vitest.config.ts
index 1a2df01..39fc68f 100644
--- a/vitest.config.ts
+++ b/vitest.config.ts
@@ -1,4 +1,4 @@
-import { defineConfig, configDefaults } from 'vitest/config'
+import { defineConfig } from 'vitest/config'
// config for vitest
export default defineConfig({
@@ -7,8 +7,7 @@ export default defineConfig({
reporters: ['verbose'], // <-- verbose output
coverage: {
include: ['src/**/*.ts'],
- reporter: 'lcov',
- reportsDirectory: './coverage'
+ reporter: 'json-summary'
}
}
})
\ No newline at end of file