Skip to content

refactor: refactoring core #5336

refactor: refactoring core

refactor: refactoring core #5336

name: Integration Tests
on:
push:
branches:
- develop
pull_request:
branches:
- develop
paths:
- 'apps/nestjs-backend/**'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
if: github.ref != 'refs/heads/refactor/core' && github.head_ref != 'refactor/core'
runs-on: ubuntu-latest
name: Integration Tests
strategy:
fail-fast: false
matrix:
node-version: [22.18.0]
database-type: [postgres]
shard: [1/4, 2/4, 3/4, 4/4]
env:
CI: 1
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: 📥 Monorepo install
uses: ./.github/actions/pnpm-install
- name: 🧪 Run Tests
env:
CI: 1
VITEST_MAX_THREADS: 2
VITEST_MIN_THREADS: 1
VITEST_SHARD: ${{ matrix.shard }}
VITEST_REPORTER: blob
run: |
make ${{ matrix.database-type }}.integration.test
pnpm -F "@teable/backend" test-unit-cover
pnpm -F "@teable/backend" merge-cover
pnpm -F "@teable/backend" generate-cover
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
with:
flag-name: run-${{ join(matrix.*, '-') }}
file: apps/nestjs-backend/coverage/nestjs-backend/clover.xml
parallel: true
finish:
needs: test
if: github.ref != 'refs/heads/refactor/core' && github.head_ref != 'refactor/core'
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true