From 0d6fd70fa7fc85294917af26772c6307e0689f2f Mon Sep 17 00:00:00 2001 From: literat Date: Wed, 22 Nov 2023 10:56:09 +0100 Subject: [PATCH] Chore(ci): Publish code coverage for `spirit-analytics` package refs #DS-874 --- .github/workflows/test.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 231d375e77..1ad525ca55 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -64,3 +64,12 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} file: ./packages/web-react/.coverage/lcov.info flag-name: web-react + + - name: Publish Analytics Package Code Coverage + # When Nx hits its cloud cache, there is no generated coverage to sent, e.g. do not let this crash + if: ${{ hashFiles('./packages/analytics/.coverage/lcov.info') != '' }} + uses: coverallsapp/github-action@v2.2.3 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + file: ./packages/analytics/.coverage/lcov.info + flag-name: analytics