mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-09-18 09:17:24 +00:00
59 lines
1.9 KiB
YAML
59 lines
1.9 KiB
YAML
name: Playwright Tests
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
BASE_URL: https://localhost:8080
|
|
# Master password seeded into configuration.json for the deSEC test. Seeding the config
|
|
# makes AIO consider itself already installed, so /setup no longer generates/shows a
|
|
# password; the seed helper writes this one and the test logs in with it directly.
|
|
AIO_TEST_PASSWORD: correct horse battery staple aircraft
|
|
|
|
jobs:
|
|
test:
|
|
timeout-minutes: 60
|
|
|
|
runs-on: ubuntu-26.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
- name: Run Playwright test for persisted defaults
|
|
env:
|
|
TEST_CODE_FROM_IMAGE: yes
|
|
run: ./php/tests/run.sh ./php/tests/tests/persist-default-config.spec.js
|
|
|
|
- name: Run Playwright tests for initial setup
|
|
env:
|
|
SKIP_DOMAIN_VALIDATION: 'true'
|
|
TEST_CODE_FROM_IMAGE: yes
|
|
run: ./php/tests/run.sh ./php/tests/tests/initial-setup.spec.js
|
|
|
|
- name: Run Playwright tests for backup restore
|
|
env:
|
|
TEST_CODE_FROM_IMAGE: yes
|
|
run: ./php/tests/run.sh ./php/tests/tests/restore-instance.spec.js
|
|
|
|
- name: Run Playwright tests for desec registration
|
|
env:
|
|
TEST_CODE_FROM_IMAGE: yes
|
|
run: ./php/tests/run.sh ./php/tests/tests/desec-register.spec.js
|
|
|
|
- name: Run Playwright tests for desec with existing account
|
|
env:
|
|
TEST_CODE_FROM_IMAGE: yes
|
|
run: ./php/tests/run.sh ./php/tests/tests/desec-existing.spec.js
|
|
|
|
- name: Run Playwright tests for desec with existing slug
|
|
env:
|
|
TEST_CODE_FROM_IMAGE: yes
|
|
run: ./php/tests/run.sh ./php/tests/tests/desec-existing-slug.spec.js
|
|
|
|
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
if: ${{ !cancelled() }}
|
|
with:
|
|
name: playwright-report
|
|
path: php/tests/playwright-report/
|
|
retention-days: 14
|
|
overwrite: true |