Skip to content

Commit

Permalink
ci: setup codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Sep 23, 2023
1 parent 75e3ead commit 849e1be
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 4 deletions.
23 changes: 22 additions & 1 deletion .fluentci/deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .fluentci/src/github/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ export function generateYaml(): Workflow {
name: "Run Dagger Pipelines",
run: "dagger run fluentci deno_pipeline fmt lint test",
},
{
name: "Upload coverage to Codecov",
run: "dagger run fluentci codecov_pipeline",
env: {
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}",
},
},
],
};

Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ jobs:
run: deno install -A -r https://cli.fluentci.io -n fluentci
- name: Setup Dagger
run: |
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.8.1 sh
sudo mv bin/dagger /usr/local/bin
dagger version
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.8.1 sh
sudo mv bin/dagger /usr/local/bin
dagger version
- name: Run Dagger Pipelines
run: dagger run fluentci deno_pipeline fmt lint test
- name: Upload coverage to Codecov
run: dagger run fluentci codecov_pipeline
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 849e1be

Please sign in to comment.