https://github.com/fluent-ci-templates/codecov-pipeline
A ready-to-use CI/CD Pipeline that uploads coverage to Codecov ☂️
https://github.com/fluent-ci-templates/codecov-pipeline
cicd codecov dagger deno pipeline typescript
Last synced: about 2 months ago
JSON representation
A ready-to-use CI/CD Pipeline that uploads coverage to Codecov ☂️
- Host: GitHub
- URL: https://github.com/fluent-ci-templates/codecov-pipeline
- Owner: fluent-ci-templates
- License: mit
- Created: 2023-07-26T04:01:59.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-11T11:13:06.000Z (almost 2 years ago)
- Last Synced: 2025-03-06T09:58:31.296Z (over 1 year ago)
- Topics: cicd, codecov, dagger, deno, pipeline, typescript
- Language: TypeScript
- Homepage:
- Size: 224 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Codecov Pipeline
[](https://pkg.fluentci.io/codecov_pipeline)
[](https://deno.land/x/codecov_pipeline)

[](https://dagger.io)
[](https://jsr.io/@fluentci/codecov)
[](https://codecov.io/gh/fluent-ci-templates/codecov-pipeline)
A ready-to-use CI/CD Pipeline that uploads coverage to [Codecov](https://about.codecov.io/) ☂️.

## 🚀 Usage
Run the following command:
```bash
fluentci run codecov_pipeline
```
## 🧩 Dagger Module
Use as a [Dagger](https://dagger.io) Module:
```bash
dagger install github.com/fluent-ci-templates/codecov-pipeline@main
```
Call `upload` function with the following command:
```bash
dagger call upload --src . --token CODECOV_TOKEN
```
## 🛠️ Environment Variables
| Variable | Description | Usage |
|---------------|---------------------|----------|
| CODECOV_TOKEN | Your Codecov token. | Required |
| CODECOV_URL | Your Codecov URL. | Optional |
| COVERAGE_FILE | Your coverage file. | Optional |
## ✨ Jobs
| Job | Description |
|---------|----------------------------------|
| upload | Uploads coverage to Codecov. |
```typescript
upload(
src: string | Directory,
token: string | Secret
): Promise
```
## 👨💻 Programmatic usage
You can also use this pipeline programmatically:
```typescript
import { upload } from "jsr:@fluentci/codecov";
await upload();
```