Compare commits

..

4 Commits

Author SHA1 Message Date
Sebastian e5446e27d2 Merge pull request 'chore: update checkout action' (#5) from chore/update-checkout-action into main
Test Action / Test Base Modules Requires PHP (push) Successful in 12s
Test Action / Test nginx (push) Successful in 35s
Test Action / Test Custom Server Path (push) Successful in 48s
Test Action / Test Node (push) Successful in 50s
Test Action / Test Build Command (push) Successful in 39s
Test Action / Test Database Configuration (push) Successful in 1m18s
Test Action / Test PHP (push) Successful in 1m25s
Test Action / Test Base Modules Installation (push) Successful in 1m37s
Test Action / Test All Components (push) Successful in 1m57s
Reviewed-on: #5
2026-07-23 20:08:25 +00:00
Sebastian e8a0436b1f chore: update checkout action
Test Action / Test Base Modules Requires PHP (pull_request) Successful in 19s
Test Action / Test nginx (pull_request) Successful in 46s
Test Action / Test Node (pull_request) Failing after 51s
Test Action / Test Custom Server Path (pull_request) Failing after 54s
Test Action / Test Build Command (pull_request) Successful in 50s
Test Action / Test PHP (pull_request) Successful in 1m30s
Test Action / Test Database Configuration (pull_request) Successful in 1m48s
Test Action / Test All Components (pull_request) Successful in 1m50s
Test Action / Test Base Modules Installation (pull_request) Successful in 59s
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
2026-07-23 16:05:04 -04:00
Sebastian 6e8b903195 Merge pull request 'fix: test hang' (#4) from fIX/test-hang into main
Test Action / Test Base Modules Requires PHP (push) Successful in 10s
Test Action / Test nginx (push) Successful in 49s
Test Action / Test Custom Server Path (push) Successful in 1m1s
Test Action / Test Build Command (push) Successful in 52s
Test Action / Test Node (push) Successful in 1m3s
Test Action / Test PHP (push) Successful in 1m45s
Test Action / Test Base Modules Installation (push) Successful in 2m17s
Test Action / Test All Components (push) Successful in 2m31s
Test Action / Test Database Configuration (push) Successful in 2m32s
Reviewed-on: #4
2026-07-23 12:21:10 +00:00
Sebastian 893071b22f fix: test hang
Test Action / Test Base Modules Requires PHP (pull_request) Successful in 7s
Test Action / Test Build Command (pull_request) Successful in 46s
Test Action / Test Custom Server Path (pull_request) Successful in 54s
Test Action / Test Node (pull_request) Successful in 55s
Test Action / Test nginx (pull_request) Successful in 58s
Test Action / Test Base Modules Installation (pull_request) Successful in 1m20s
Test Action / Test Database Configuration (pull_request) Successful in 1m59s
Test Action / Test PHP (pull_request) Successful in 2m0s
Test Action / Test All Components (pull_request) Successful in 2m1s
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
2026-07-23 08:18:26 -04:00
2 changed files with 20 additions and 52 deletions
+18 -50
View File
@@ -23,6 +23,7 @@ jobs:
persist-credentials: false
- name: Test action with Node.js (npm)
id: install
uses: ./
with:
install-node: 'true'
@@ -39,12 +40,9 @@ jobs:
test -d ./test-server/node_modules || exit 1
chmod +x ./scripts/health-check.sh
./scripts/health-check.sh ./test-server true false false
test "${{ steps.install.outputs.install-status }}" = "success"
test "${{ steps.install.outputs.node-installed }}" = "true"
echo "✓ Node.js (npm) installation successful"
- name: Run server tests
run: |
cd ./test-server
npm run test:unit
test-php:
name: Test PHP
@@ -55,6 +53,7 @@ jobs:
persist-credentials: false
- name: Test action with PHP
id: install
uses: ./
with:
install-php: 'true'
@@ -72,19 +71,13 @@ jobs:
composer --version
chmod +x ./scripts/health-check.sh
./scripts/health-check.sh ./test-server false true false
test "${{ steps.install.outputs.install-status }}" = "success"
test "${{ steps.install.outputs.php-installed }}" = "true"
echo "✓ PHP installation successful"
- name: Run server tests
run: |
cd ./test-server
composer test:unit
test-database-config:
name: Test Database Configuration
runs-on: ubuntu-latest
services:
mongo:
image: mongo:7
steps:
- uses: actions/checkout@v4
with:
@@ -119,11 +112,6 @@ jobs:
'
echo "✓ Database configuration verified"
- name: Verify database is reachable with configured settings
run: |
cd ./test-server
php bin/console tenant:list
test-base-modules:
name: Test Base Modules Installation
runs-on: ubuntu-latest
@@ -136,6 +124,7 @@ jobs:
persist-credentials: false
- name: Test action with base modules
id: install
uses: ./
with:
install-php: 'true'
@@ -151,22 +140,11 @@ jobs:
- name: Verify password authentication provider is installed and enabled
run: |
cd ./test-server
OUTPUT=$(php bin/console module:list)
echo "$OUTPUT"
echo "$OUTPUT" | grep -q "authentication_provider_password" || { echo "::error::authentication_provider_password not found in module list"; exit 1; }
echo "$OUTPUT" | grep "authentication_provider_password" | grep -q "Enabled" || { echo "::error::authentication_provider_password is not enabled"; exit 1; }
test -d ./test-server/modules/authentication_provider_password
test "${{ steps.install.outputs.install-status }}" = "success"
test "${{ steps.install.outputs.base-modules-installed }}" = "true"
echo "✓ authentication_provider_password is installed and enabled"
- name: Verify a tenant and user can be provisioned end-to-end
run: |
cd ./test-server
php bin/console tenant:create ci.test --identifier ci_smoke
php bin/console user:create ci_smoke tester@ci.test
php bin/console user:password ci_smoke tester@ci.test 'Sup3r-Secret!'
php bin/console user:list ci_smoke | grep -q "tester@ci.test" || { echo "::error::provisioned user not found"; exit 1; }
echo "✓ tenant and user provisioning verified"
test-base-modules-requires-php:
name: Test Base Modules Requires PHP
runs-on: ubuntu-latest
@@ -220,6 +198,7 @@ jobs:
persist-credentials: false
- name: Test action with all components
id: install
uses: ./
with:
install-node: 'true'
@@ -244,16 +223,11 @@ jobs:
nginx -v
chmod +x ./scripts/health-check.sh
./scripts/health-check.sh ./test-server true true true
test "${{ steps.install.outputs.install-status }}" = "success"
test "${{ steps.install.outputs.node-installed }}" = "true"
test "${{ steps.install.outputs.php-installed }}" = "true"
test "${{ steps.install.outputs.nginx-installed }}" = "true"
echo "✓ All components installation successful"
- name: Run integration tests
run: |
cd ./test-server
if [ -f package.json ] && grep -q '"test:integration"' package.json; then
npm run test:integration
else
echo "⚠ No integration test script configured, skipping"
fi
test-custom-paths:
name: Test Custom Server Path
@@ -264,6 +238,7 @@ jobs:
persist-credentials: false
- name: Test action with custom path
id: install
uses: ./
with:
install-node: 'true'
@@ -277,16 +252,9 @@ jobs:
run: |
test -d ./my-custom-server || exit 1
test -d ./my-custom-server/node_modules || exit 1
test "${{ steps.install.outputs.install-path }}" = "./my-custom-server"
test "${{ steps.install.outputs.install-status }}" = "success"
echo "✓ Custom path installation successful"
- name: Run server tests
run: |
cd ./my-custom-server
if [ -f package.json ] && grep -q '"test"' package.json; then
npm test
else
echo "⚠ No test script configured, skipping"
fi
test-build-command:
name: Test Build Command
+2 -2
View File
@@ -140,7 +140,7 @@ runs:
- name: Checkout server repository (public/no token)
if: inputs.checkout-token == ''
uses: actions/checkout@v4
uses: actions/checkout@v6.0.2
with:
repository: ${{ inputs.server-repository }}
ref: ${{ inputs.server-ref }}
@@ -152,7 +152,7 @@ runs:
- name: Checkout server repository (with token)
if: inputs.checkout-token != ''
uses: actions/checkout@v4
uses: actions/checkout@v6.0.2
with:
repository: ${{ inputs.server-repository }}
ref: ${{ inputs.server-ref }}