Skip to content

[BDMS-693]: Add dynamic preview deployments with Authentik redirect management + runtime redirect URI fix #364

[BDMS-693]: Add dynamic preview deployments with Authentik redirect management + runtime redirect URI fix

[BDMS-693]: Add dynamic preview deployments with Authentik redirect management + runtime redirect URI fix #364

Workflow file for this run

name: Vitest Test Suite
on:
pull_request:
jobs:
integration-testing:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run OpenAPI-ts generator
run: npx @hey-api/openapi-ts
- name: Check for generated file changes
run: |
# Add generated files to staging
git add src/generated/
# Check if there are any changes
if git diff --cached --quiet; then
echo "Types and Zod schemas are up to date"
else
echo "Types and Zod schemas are out of date!"
echo "The following files should be changed according to the OpenAPI spec:"
git diff --cached --name-only
echo ""
echo "Please run 'npm run openapi:generate', test and edit as needed, and commit your changes."
exit 1
fi
- name: Run tests with mock server
run: |
# Start mock server in background
npm run mock:server:vitest &
# Wait for server to start
sleep 5
# Run tests
npm run test:run
env:
NODE_ENV: test