From acece38d35440c7cd864defb8007d0b2f9773394 Mon Sep 17 00:00:00 2001 From: Adarsh Pastakia Date: Sat, 24 Aug 2024 18:12:44 +0400 Subject: [PATCH] build: add codeclimate coverage --- .codeclimate.json | 5 +++++ .github/workflows/build.yml | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.codeclimate.json b/.codeclimate.json index aa9df5c..c11a20d 100644 --- a/.codeclimate.json +++ b/.codeclimate.json @@ -27,6 +27,11 @@ ".gitignore", ".npmignore", ".codeclimate.json", + "**/darkBase.ts", + "**/lightBase.ts", + "**/palettes.ts", + "**/world.svg.ts", + "**/_fileType.ts", "**/_countries.ts", "**/hijri-date.js" ] diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e3bf722..7089f67 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,12 +33,13 @@ jobs: run: | yarn dist - # - name: Run coverage - # uses: paambaati/codeclimate-action@v5.0.0 - # env: - # CC_TEST_REPORTER_ID: ${{ secrets.COVERAGE_TOKEN }} - # with: - # coverageCommand: yarn test --coverage --json --outputFile=./.storybook/jest-test-results.json + # Collect test coverage + - name: Run coverage + uses: paambaati/codeclimate-action@v5.0.0 + env: + CC_TEST_REPORTER_ID: ${{ secrets.COVERAGE_TOKEN }} + with: + coverageCommand: yarn test --coverage --json --outputFile=./.storybook/jest-test-results.json # Runs a set of commands using the runners shell - name: Build storybook