mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-07-21 21:52:53 +00:00
4e03393d53
Save the default container selection to the config, so it gets persisted even if people don't change anything in the UI. Without this any change to the defaults would be applied to existing instances. Signed-off-by: Pablo Zmdl <pablo@nextcloud.com> AI-assistant: Copilot v1.0.69 (Claude Sonnet 4.6)
60 lines
1.7 KiB
YAML
60 lines
1.7 KiB
YAML
name: Playwright Tests on push
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'php/**'
|
|
- 'Containers/mastercontainer/*.Caddyfile'
|
|
- 'Containers/mastercontainer/start.sh'
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'php/**'
|
|
- 'Containers/mastercontainer/*.Caddyfile'
|
|
- 'Containers/mastercontainer/start.sh'
|
|
|
|
concurrency:
|
|
group: playwright-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
BASE_URL: https://localhost:8080
|
|
|
|
jobs:
|
|
test:
|
|
timeout-minutes: 60
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
|
|
- name: Run Playwright test for persisted defaults
|
|
run: ./php/tests/run.sh ./php/tests/tests/persist-default-config.spec.js
|
|
|
|
- name: Run Playwright tests for initial setup
|
|
run: ./php/tests/run.sh ./php/tests/tests/initial-setup.spec.js
|
|
env:
|
|
SKIP_DOMAIN_VALIDATION: 'true'
|
|
|
|
- name: Run Playwright tests for backup restore
|
|
run: ./php/tests/run.sh ./php/tests/tests/restore-instance.spec.js
|
|
|
|
- name: Run Playwright tests for desec registration
|
|
run: ./php/tests/run.sh ./php/tests/tests/desec-register.spec.js
|
|
|
|
- name: Run Playwright tests for desec with existing account
|
|
run: ./php/tests/run.sh ./php/tests/tests/desec-existing.spec.js
|
|
|
|
- name: Run Playwright tests for desec with existing slug
|
|
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
|