Update package.json #2401
Workflow file for this run
This file contains 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: E2E Test | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
passwordless: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Start containers | |
working-directory: ./deploy/docker-compose | |
run: docker compose -f "quickstart.e2e.yaml" up -d --build | |
- name: Install dependencies | |
working-directory: ./e2e | |
run: | | |
npm install | |
npx playwright install chromium | |
- name: Run tests | |
working-directory: ./e2e | |
run: npm run 'test:nopw' | |
- name: Stop containers | |
if: always() | |
working-directory: ./deploy/docker-compose | |
run: docker compose -f "quickstart.e2e.yaml" down | |
passwords: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Start containers | |
working-directory: ./deploy/docker-compose | |
run: docker compose -f "quickstart.e2e.yaml" up -d --build | |
env: | |
PASSWORD_ENABLED: true | |
- name: Install dependencies | |
working-directory: ./e2e | |
run: | | |
npm install | |
npx playwright install chromium | |
- name: Run tests | |
working-directory: ./e2e | |
run: npm run 'test:pw' | |
- name: Stop containers | |
if: always() | |
working-directory: ./deploy/docker-compose | |
run: docker compose -f "quickstart.e2e.yaml" down | |
nosignup: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Copy config | |
working-directory: ./deploy/docker-compose | |
run: cp config-disable-signup.yaml config.yaml | |
- name: Start containers | |
working-directory: ./deploy/docker-compose | |
run: docker compose -f "quickstart.e2e.yaml" up -d --build | |
- name: Install dependencies | |
working-directory: ./e2e | |
run: | | |
npm install | |
npx playwright install chromium | |
- name: Run tests | |
working-directory: ./e2e | |
run: npm run 'test:nosignup' | |
- name: Stop containers | |
if: always() | |
working-directory: ./deploy/docker-compose | |
run: docker compose -f "quickstart.e2e.yaml" down |