mirror of
https://github.com/cloudmaker97/JTL-Shop-Entwicklungsumgebung.git
synced 2025-12-06 00:48:34 +00:00
Workflow zum Testen der Installationsroutine
This commit is contained in:
parent
d656e26492
commit
323e7316d5
1 changed files with 61 additions and 0 deletions
61
.github/workflows/test-install-routine.yml
vendored
Normal file
61
.github/workflows/test-install-routine.yml
vendored
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
name: Test the installation routine
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
test-install:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Set up DDEV
|
||||
uses: ddev/github-action-setup-ddev@v1
|
||||
|
||||
- name: Start DDEV environment
|
||||
run: |
|
||||
ddev start
|
||||
ddev describe
|
||||
|
||||
- name: Run installation
|
||||
run: |
|
||||
echo "Starting JTL-Shop installation..."
|
||||
ddev just install
|
||||
|
||||
- name: Basic verification
|
||||
run: |
|
||||
echo "=== Verifying installation ==="
|
||||
# Check if basic shop files are present
|
||||
test -d shop/
|
||||
test -f shop/index.php
|
||||
test -d shop/includes/
|
||||
|
||||
# Check if database tables were created
|
||||
ddev exec "mysql -e 'SHOW TABLES;' db" | grep -q "tadmin" || (echo "Database tables not found" && exit 1)
|
||||
|
||||
echo "Installation verification completed successfully!"
|
||||
|
||||
- name: Debug on failure
|
||||
if: failure()
|
||||
run: |
|
||||
echo "=== DDEV Status ==="
|
||||
ddev describe
|
||||
echo "=== DDEV Logs ==="
|
||||
ddev logs
|
||||
echo "=== Shop Directory ==="
|
||||
ls -la shop/ || true
|
||||
echo "=== Install Directory ==="
|
||||
ls -la shop/install/ || true
|
||||
|
||||
- name: Cleanup
|
||||
if: always()
|
||||
run: |
|
||||
ddev stop
|
||||
ddev remove -RO
|
||||
Loading…
Reference in a new issue