From c7ab93a9d56b30743161192364ab914ccc393fa4 Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Sun, 29 Oct 2023 19:11:11 +0000 Subject: [PATCH] ci: fix codecov --- .fluentci/src/github/config.ts | 6 +++++- .github/workflows/ci.yml | 10 ++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.fluentci/src/github/config.ts b/.fluentci/src/github/config.ts index a68492b..82bfe7a 100644 --- a/.fluentci/src/github/config.ts +++ b/.fluentci/src/github/config.ts @@ -38,7 +38,11 @@ export function generateYaml() { }, { name: "Run Dagger Pipelines", - run: "fluentci run . fmt lint test codecov", + run: "fluentci run . fmt lint test", + }, + { + name: "Upload to Codecov", + run: "fluentci run codecov_pipeline", env: { CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}", }, diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 47980c5..0c66368 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,12 +17,14 @@ 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.8 sh - sudo mv bin/dagger /usr/local/bin - dagger version + curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.8.8 sh + sudo mv bin/dagger /usr/local/bin + dagger version - name: List Jobs run: fluentci ls . - name: Run Dagger Pipelines - run: fluentci run . fmt lint test codecov + run: fluentci run . fmt lint test + - name: Upload to Codecov + run: fluentci run codecov_pipeline env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}