From d4ca1d9f9cb0f2f243944b59e1afccbfd5a5bde0 Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Fri, 25 Aug 2023 07:59:26 +0000 Subject: [PATCH] ci: setup codecov --- .fluentci/src/github/config.ts | 7 +++++++ .github/workflows/ci.yml | 10 +++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.fluentci/src/github/config.ts b/.fluentci/src/github/config.ts index bc54931..937a3de 100644 --- a/.fluentci/src/github/config.ts +++ b/.fluentci/src/github/config.ts @@ -36,6 +36,13 @@ export function generateYaml(): Workflow { name: "Run Dagger Pipelines", run: "dagger run fluentci deno_pipeline fmt lint test", }, + { + name: "Upload Coverage", + run: "fluentci run codecov_pipeline", + env: { + CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}", + }, + }, ], }; diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ae6ec7d..891897f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 + run: fluentci run codecov_pipeline + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}