From 3989695aed160c07a40ee1a624dff7b224992745 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Thu, 27 Jun 2024 15:05:14 +0200 Subject: [PATCH] Setup code coverage with codecov We will have to provide a codecov token for builds. The token will not be used for PRs from forks. --- .github/workflows/ci.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b106f1d..ad3021e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -15,4 +15,11 @@ jobs: - run: yarn install --frozen-lockfile - run: yarn build - run: yarn lint - - run: yarn test + - run: yarn test --coverage + + - name: "Upload to Codecov" + uses: "codecov/codecov-action@v4" + with: + directory: coverage + env: + CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"