diff --git a/.github/workflows/studio-unit-tests.yml b/.github/workflows/studio-unit-tests.yml index 5a162731feb..1fdf431f538 100644 --- a/.github/workflows/studio-unit-tests.yml +++ b/.github/workflows/studio-unit-tests.yml @@ -55,24 +55,29 @@ jobs: NODE_OPTIONS: '--max_old_space_size=3072' run: pnpm run test:ci working-directory: ./apps/studio + - name: Upload coverage artifact + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 + with: + name: studio-coverage + path: ./apps/studio/coverage/lcov.info + retention-days: 1 + coveralls: + needs: test + if: ${{ always() && needs.test.result == 'success' }} + continue-on-error: true + runs-on: blacksmith-4vcpu-ubuntu-2404 + steps: + - name: Download coverage artifact + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 + with: + name: studio-coverage + path: ./coverage - name: Upload coverage results to Coveralls uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6 with: - parallel: true flag-name: studio-tests github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: ./apps/studio/coverage/lcov.info + path-to-lcov: ./coverage/lcov.info base-path: './apps/studio' fail-on-error: false - - finish: - needs: test - if: ${{ always() }} - runs-on: blacksmith-4vcpu-ubuntu-2404 - steps: - - name: Coveralls Finished - uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6 - with: - parallel-finished: true - github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/ui-tests.yml b/.github/workflows/ui-tests.yml index fc13c236d5c..f9e1df7479e 100644 --- a/.github/workflows/ui-tests.yml +++ b/.github/workflows/ui-tests.yml @@ -44,23 +44,29 @@ jobs: - name: Run tests run: pnpm run test:ci working-directory: ./packages/ui + - name: Upload coverage artifact + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 + with: + name: ui-coverage + path: ./packages/ui/coverage/lcov.info + retention-days: 1 + coveralls: + needs: test + if: ${{ always() && needs.test.result == 'success' }} + continue-on-error: true + runs-on: blacksmith-4vcpu-ubuntu-2404 + steps: + - name: Download coverage artifact + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 + with: + name: ui-coverage + path: ./coverage - name: Upload coverage results to Coveralls uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6 with: - parallel: true flag-name: ui-tests github-token: ${{ secrets.GITHUB_TOKEN }} - path-to-lcov: ./packages/ui/coverage/lcov.info + path-to-lcov: ./coverage/lcov.info base-path: './packages/ui' - - finish: - needs: test - if: ${{ always() }} - runs-on: blacksmith-4vcpu-ubuntu-2404 - steps: - - name: Coveralls Finished - uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6 - with: - parallel-finished: true - github-token: ${{ secrets.GITHUB_TOKEN }} + fail-on-error: false diff --git a/apps/studio/components/interfaces/Reports/Reports.utils.test.ts b/apps/studio/components/interfaces/Reports/Reports.utils.test.ts index 8884c0e8a70..8d407171165 100644 --- a/apps/studio/components/interfaces/Reports/Reports.utils.test.ts +++ b/apps/studio/components/interfaces/Reports/Reports.utils.test.ts @@ -1,3 +1,4 @@ +// @see studio-unit-tests.yml import { describe, it, expect } from 'vitest' import { formatTimestamp } from './Reports.utils' import dayjs from 'dayjs'