Skip to content

query flow redirect followup #93

query flow redirect followup

query flow redirect followup #93

Workflow file for this run

name: CI
on:
pull_request:
branches:
- "**"
merge_group:
types:
- checks_requested
push:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
NODE_VERSION: 18 # Adjust the Node.js version as needed
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run linting
working-directory: ./query-connector
run: |
npm ci
npm run lint
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{env.NODE_VERSION}}
- name: Install dependencies
working-directory: ./query-connector
run: npm install
- name: Run tests
working-directory: ./query-connector
run: npm test
end-to-end-tests:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{env.NODE_VERSION}}
- name: Install dependencies
working-directory: ./query-connector
run: npm ci
- name: Install Playwright Browsers
working-directory: ./query-connector
run: npx playwright install --with-deps
- name: Build Query Connector
working-directory: ./query-connector
run: docker compose build --no-cache
- name: Run Query Connector
working-directory: ./query-connector
run: docker compose up -d
- name: Poll until Query Connector is ready
run: |
until curl -s http://localhost:3000/tefca-viewer; do
echo "Waiting for Query Connector to be ready before running Playwright..."
sleep 5
done
- name: Playwright Tests
working-directory: ./query-connector
run: npx playwright test e2e --reporter=list --config playwright.config.ts
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: test-results
path: ./query-connector/test-results/