Bump version from 1.3.0 to 1.4.0 #306
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: API Tests | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| branch: | |
| description: 'Branch to test' | |
| required: false | |
| type: string | |
| default: 'main' | |
| pull_request: | |
| branches: | |
| - master | |
| paths: | |
| - 'apps/api/**' | |
| - 'packages/**' | |
| - 'proprietary/**' | |
| - 'pnpm-lock.yaml' | |
| jobs: | |
| api-tests: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ inputs.branch || github.ref }} | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'pnpm' | |
| - run: pnpm install --frozen-lockfile | |
| - name: Generate Prisma client | |
| working-directory: proprietary/entitlement | |
| run: pnpm prisma:generate | |
| - name: Run API tests | |
| working-directory: apps/api | |
| run: pnpm test | |
| - name: Run entitlement unit tests | |
| working-directory: proprietary/entitlement | |
| run: pnpm vitest run --exclude 'src/**/integration/**' | |
| - name: Show container logs on failure | |
| if: failure() | |
| run: | | |
| echo "=== Valkey Logs ===" | |
| docker logs betterdb-test-valkey 2>&1 | tail -50 || echo "Container not found" | |
| echo "=== Redis Logs ===" | |
| docker logs betterdb-test-redis 2>&1 | tail -50 || echo "Container not found" | |
| echo "=== PostgreSQL Logs ===" | |
| docker logs betterdb-test-postgres 2>&1 | tail -50 || echo "Container not found" |