Skip to content

fix: update Service Bus connection string handling in configuration #314

fix: update Service Bus connection string handling in configuration

fix: update Service Bus connection string handling in configuration #314

Workflow file for this run

name: UI Tests
on:
pull_request:
paths:
- "application/CohortManager/src/Web/**"
branches: [main]
workflow_dispatch:
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
defaults:
run:
working-directory: application/CohortManager/src/Web
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
cache-dependency-path: application/CohortManager/src/Web/package-lock.json
- name: Install dependencies
run: npm ci
- name: Install Playwright browsers
run: npx playwright install --with-deps
# <-- ADD THIS DEBUG STEP HERE
- name: Debug AUTH_SECRET
run: echo "AUTH_SECRET is set: ${AUTH_SECRET:+yes}"

Check failure on line 36 in .github/workflows/ci-ui-tests.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci-ui-tests.yaml

Invalid workflow file

You have an error in your yaml syntax on line 36
env:
AUTH_SECRET: ${{ secrets.AUTH_SECRET }}
- name: Start application and run tests
env:
AUTH_SECRET: ${{ secrets.AUTH_SECRET }}
SERVICE_NAME: ${{ vars.SERVICE_NAME }}
NEXTAUTH_URL: ${{ vars.NEXTAUTH_URL }}
EXCEPTIONS_API_URL: ${{ vars.EXCEPTIONS_API_URL }}
COHORT_MANAGER_RBAC_CODE: ${{ vars.COHORT_MANAGER_USERS }}
run: |
# Start the app in background
npm run dev:secure &
# Wait for the app to be ready
while ! curl -s https://localhost:3000 > /dev/null; do
echo "Waiting for app to start..."
sleep 5
done
# Run the tests
npm run test:e2e
- name: run epic 4a tests
env:
AUTH_SECRET: ${{ secrets.AUTH_SECRET }}
SERVICE_NAME: ${{ vars.SERVICE_NAME }}
NEXTAUTH_URL: ${{ vars.NEXTAUTH_URL }}
EXCEPTIONS_API_URL: ${{ vars.EXCEPTIONS_API_URL }}
COHORT_MANAGER_RBAC_CODE: ${{ vars.COHORT_MANAGER_USERS }}
run: |
# Run the tests
npm run test:e2e:epic_4a
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
path: application/CohortManager/src/Web/test-results/
retention-days: 30