Skip to content

Use hurl for integration tests #7

Use hurl for integration tests

Use hurl for integration tests #7

Workflow file for this run

name: "End-to-end Tests"
on:
pull_request:
paths:
- 'src/api/**'
- 'src/spa/**'
- 'e2e/**'
- '.github/workflows/pr-e2e.yml'
jobs:
e2e-test:
name: Test E2E
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['16.10.0']
steps:
- uses: actions/checkout@v2
- name: Start Docker containers
working-directory: .
run: docker-compose --project-directory . -f env/local/docker-compose.local.yml -f env/e2e/docker-compose.e2e.yml up -d
- name: Install E2E dependencies
working-directory: ./e2e
run: |
npm install
npx playwright install chromium
- run: npx playwright test
name: Run E2E Tests
working-directory: ./e2e
- name: Stop Docker containers
if: always()
working-directory: .
run: docker-compose --project-directory . -f env/local/docker-compose.local.yml -f env/e2e/docker-compose.e2e.yml down