chore(objectstack): upgrade to 7.5.0 + fix date-field save regression #86
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: Integration Tests | |
| on: | |
| pull_request: | |
| branches: [main, develop] | |
| push: | |
| branches: [main, develop] | |
| # Allow manual trigger | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| integration: | |
| name: Server Integration Tests | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: pnpm | |
| # Install app + CLI dependencies | |
| - name: Install dependencies | |
| run: pnpm install | |
| # Pre-compile the stack to a JSON artifact (surfaces any compile error in | |
| # its own step and lets the server boot without an esbuild compile). | |
| - name: Build integration artifact | |
| run: npx objectstack build | |
| working-directory: server/integration | |
| # Start the ObjectStack CLI server (server/integration stack) in background | |
| - name: Start integration server | |
| run: ./scripts/start-integration-server.sh --bg | |
| env: | |
| PORT: 4000 | |
| AUTH_SECRET: integration-secret-please-change-min-32-chars | |
| # Wait for server readiness | |
| - name: Wait for server | |
| run: ./scripts/wait-for-server.sh http://localhost:4000/api/v1/auth/get-session 120 | |
| # Run integration tests | |
| - name: Run integration tests | |
| run: pnpm test:integration:server | |
| env: | |
| INTEGRATION_SERVER_URL: http://localhost:4000 | |
| # Surface the server log for diagnosis if anything above failed | |
| - name: Dump server log | |
| if: always() | |
| run: cat .integration-server.log || true | |
| # Stop server | |
| - name: Stop integration server | |
| if: always() | |
| run: ./scripts/stop-integration-server.sh |