From 6872621f85f9cbd5646d2c30970d4c0bada8ae5e Mon Sep 17 00:00:00 2001 From: Dave Henton Date: Wed, 6 Aug 2025 17:50:26 -0500 Subject: [PATCH 1/2] upload coverage report to Qlty --- .github/workflows/unit-test.yml | 42 ++++++++++++++++----------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 0eb7af4c4..c67767f7f 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -29,25 +29,23 @@ jobs: with: hide-comment: false coverage-summary-path: ./coverage/coverage-summary.json - test-code-climate: - name: Upload unit test results to Code Climate - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - - name: Setup - uses: ./.github/actions/setup - - - name: Run tests - run: | - yarn test --coverage --coverageReporters lcov - - - name: Upload coverage to Code Climate - uses: paambaati/codeclimate-action@v9.0.0 - env: - CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} - with: - coverageCommand: yarn test --coverage --coverageReporters lcov - coverageLocations: | - ${{github.workspace}}/coverage/lcov.info:lcov \ No newline at end of file + +run-tests-and-publish-coverage: + name: Upload unit test results to qlty + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup + uses: ./.github/actions/setup + + - name: Run tests + run: | + yarn test --coverage --coverageReporters lcov + + - name: Upload coverage to qlty + uses: qltysh/qlty-action/coverage@v1 + with: + token: ${{ secrets.QLTY_COVERAGE_TOKEN }} + files: coverage/lcov.info From 079b52726b8bb284795078974364c6c2cd21a982 Mon Sep 17 00:00:00 2001 From: Dave Henton Date: Wed, 6 Aug 2025 17:54:45 -0500 Subject: [PATCH 2/2] fix indentation --- .github/workflows/unit-test.yml | 38 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index c67767f7f..bc18af429 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -30,22 +30,22 @@ jobs: hide-comment: false coverage-summary-path: ./coverage/coverage-summary.json -run-tests-and-publish-coverage: - name: Upload unit test results to qlty - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - - name: Setup - uses: ./.github/actions/setup - - - name: Run tests - run: | - yarn test --coverage --coverageReporters lcov - - - name: Upload coverage to qlty - uses: qltysh/qlty-action/coverage@v1 - with: - token: ${{ secrets.QLTY_COVERAGE_TOKEN }} - files: coverage/lcov.info + run-tests-and-publish-coverage: + name: Upload unit test results to qlty + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup + uses: ./.github/actions/setup + + - name: Run tests + run: | + yarn test --coverage --coverageReporters lcov + + - name: Upload coverage to qlty + uses: qltysh/qlty-action/coverage@v1 + with: + token: ${{ secrets.QLTY_COVERAGE_TOKEN }} + files: coverage/lcov.info