-
Notifications
You must be signed in to change notification settings - Fork 0
ci: Add Codecov workflow and coverage badges #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| <claude-mem-context> | ||
| # Recent Activity | ||
|
|
||
| <!-- This section is auto-generated by claude-mem. Edit content outside the tags. --> | ||
|
|
||
| *No recent activity* | ||
| </claude-mem-context> |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,8 +1,10 @@ | ||||||
| # Dokploy Templates + Cloudflare Integration - AI Coding Agent System | ||||||
|
|
||||||
| **Version:** 1.0.0 | ||||||
| **Last Updated:** December 24, 2025 | ||||||
| **Repository:** https://github.com/enuno/dokploy | ||||||
| [](https://codecov.io/github/enuno/dokploy) | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The Codecov token is exposed in the badge URL. This is a security risk, as tokens should be kept secret. For public repositories, the token is not required to display the badge. Please remove the token from the URL.
Suggested change
|
||||||
|
|
||||||
| **Version:** 1.0.0 | ||||||
| **Last Updated:** December 24, 2025 | ||||||
| **Repository:** https://github.com/enuno/dokploy | ||||||
| **Project Lead:** Ryno Crypto Mining Services - ServerDomes Network Engineering | ||||||
|
|
||||||
| --- | ||||||
|
|
@@ -495,6 +497,10 @@ All templates must meet: | |||||
| - ✅ **Documentation:** Complete and clear | ||||||
| - ✅ **No Secrets:** Hardcoded credentials forbidden | ||||||
|
|
||||||
| ### Code Coverage Visualization | ||||||
|
|
||||||
|  | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The Codecov token is exposed in the sunburst graph URL. This is a security risk, as tokens should be kept secret. For public repositories, the token is not required to display the graph. Please remove the token from the URL.
Suggested change
|
||||||
|
|
||||||
| --- | ||||||
|
|
||||||
| ## 🔄 Contributing | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <claude-mem-context> | ||
| # Recent Activity | ||
|
|
||
| <!-- This section is auto-generated by claude-mem. Edit content outside the tags. --> | ||
|
|
||
| ### Jan 27, 2026 | ||
|
|
||
| | ID | Time | T | Title | Read | | ||
| |----|------|---|-------|------| | ||
| | #498 | 11:36 PM | 🟣 | Added infrastructure smoke tests for Jest and TypeScript | ~284 | | ||
| </claude-mem-context> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| /** | ||
| * Infrastructure smoke test | ||
| * Verifies that Jest, TypeScript, and coverage collection work correctly | ||
| */ | ||
|
|
||
| describe('Testing Infrastructure', () => { | ||
| test('Jest can run tests', () => { | ||
| expect(true).toBe(true); | ||
| }); | ||
|
|
||
| test('TypeScript compilation works', () => { | ||
| const value: string = 'test'; | ||
| expect(typeof value).toBe('string'); | ||
| }); | ||
|
|
||
| test('Basic assertions work', () => { | ||
| const sum = (a: number, b: number): number => a + b; | ||
| expect(sum(2, 3)).toBe(5); | ||
| }); | ||
| }); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| { | ||
| "name": "dokploy-templates", | ||
| "version": "1.0.0", | ||
| "description": "Production-ready Dokploy application templates with Cloudflare integration", | ||
| "private": true, | ||
| "scripts": { | ||
| "test": "jest", | ||
| "test:coverage": "jest --coverage", | ||
| "test:watch": "jest --watch" | ||
| }, | ||
| "devDependencies": { | ||
| "@types/jest": "^29.5.12", | ||
| "jest": "^29.7.0", | ||
| "ts-jest": "^29.1.2", | ||
| "typescript": "^5.3.3" | ||
| }, | ||
| "jest": { | ||
| "preset": "ts-jest", | ||
| "testEnvironment": "node", | ||
| "testMatch": [ | ||
| "**/__tests__/**/*.ts", | ||
| "**/?(*.)+(spec|test).ts" | ||
| ], | ||
| "collectCoverageFrom": [ | ||
| "**/*.ts", | ||
| "!**/*.d.ts", | ||
| "!**/node_modules/**", | ||
| "!**/__tests__/**" | ||
| ] | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| { | ||
| "compilerOptions": { | ||
| "target": "ES2020", | ||
| "module": "commonjs", | ||
| "lib": ["ES2020"], | ||
| "outDir": "./dist", | ||
| "rootDir": "./", | ||
| "strict": true, | ||
| "esModuleInterop": true, | ||
| "skipLibCheck": true, | ||
| "forceConsistentCasingInFileNames": true, | ||
| "resolveJsonModule": true, | ||
| "moduleResolution": "node", | ||
| "types": ["jest", "node"] | ||
| }, | ||
| "include": ["**/*.ts"], | ||
| "exclude": ["node_modules", "dist"] | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
package-lock.jsonshould not be in.gitignore. This file is crucial for ensuring that the exact same dependency versions are used across all environments (developer machines, CI/CD pipelines, etc.), which prevents "works on my machine" issues. By committing it, you guarantee reproducible builds.