Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: split tests running from coveralls upload (#43171)

Jordi Enric03351c784ab0
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 results to Coveralls
- uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6
+ - name: Upload coverage artifact
+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
- parallel: true
- flag-name: studio-tests
- github-token: ${{ secrets.GITHUB_TOKEN }}
- path-to-lcov: ./apps/studio/coverage/lcov.info
- base-path: './apps/studio'
- fail-on-error: false
+ name: studio-coverage
+ path: ./apps/studio/coverage/lcov.info
+ retention-days: 1
- finish:
+ coveralls:
needs: test
- if: ${{ always() }}
+ if: ${{ always() && needs.test.result == 'success' }}
+ continue-on-error: true
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- - name: Coveralls Finished
+ - 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-finished: true
+ flag-name: studio-tests
github-token: ${{ secrets.GITHUB_TOKEN }}
+ path-to-lcov: ./coverage/lcov.info
+ base-path: './apps/studio'
+ fail-on-error: false
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 results to Coveralls
- uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6
+ - name: Upload coverage artifact
+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
- parallel: true
- flag-name: ui-tests
- github-token: ${{ secrets.GITHUB_TOKEN }}
- path-to-lcov: ./packages/ui/coverage/lcov.info
- base-path: './packages/ui'
+ name: ui-coverage
+ path: ./packages/ui/coverage/lcov.info
+ retention-days: 1
- finish:
+ coveralls:
needs: test
- if: ${{ always() }}
+ if: ${{ always() && needs.test.result == 'success' }}
+ continue-on-error: true
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- - name: Coveralls Finished
+ - 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-finished: true
+ flag-name: ui-tests
github-token: ${{ secrets.GITHUB_TOKEN }}
+ path-to-lcov: ./coverage/lcov.info
+ base-path: './packages/ui'
+ 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'