Compare commits

..

4 Commits

Author SHA1 Message Date
b6123d6ee1 Merge pull request 'chore: improve server checkout' (#2) from chore/improve-server-checkout into main
All checks were successful
Test Action / Test Node (push) Successful in 18s
Test Action / Test nginx (push) Successful in 21s
Test Action / Test Custom Server Path (push) Successful in 25s
Test Action / Test Build Command (push) Successful in 27s
Test Action / Test PHP (push) Successful in 1m8s
Test Action / Test All Components (push) Successful in 1m43s
Reviewed-on: #2
2026-02-15 22:23:03 +00:00
049fe228a5 chore: improve server checkout
All checks were successful
Test Action / Test Node (pull_request) Successful in 17s
Test Action / Test nginx (pull_request) Successful in 21s
Test Action / Test Custom Server Path (pull_request) Successful in 25s
Test Action / Test Build Command (pull_request) Successful in 25s
Test Action / Test PHP (pull_request) Successful in 1m15s
Test Action / Test All Components (pull_request) Successful in 1m21s
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
2026-02-15 17:21:09 -05:00
6461eddc8c Merge pull request 'chore: update name' (#1) from chore/test into main
All checks were successful
Test Action / Test Node (push) Successful in 21s
Test Action / Test Custom Server Path (push) Successful in 31s
Test Action / Test Build Command (push) Successful in 33s
Test Action / Test nginx (push) Successful in 51s
Test Action / Test PHP (push) Successful in 1m12s
Test Action / Test All Components (push) Successful in 1m22s
Reviewed-on: #1
2026-02-14 22:42:04 +00:00
ae55fa9c52 chore: update name
All checks were successful
Test Action / Test Node (pull_request) Successful in 14s
Test Action / Test nginx (pull_request) Successful in 16s
Test Action / Test Custom Server Path (pull_request) Successful in 23s
Test Action / Test Build Command (pull_request) Successful in 25s
Test Action / Test PHP (pull_request) Successful in 52s
Test Action / Test All Components (pull_request) Successful in 1m10s
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
2026-02-14 17:37:02 -05:00
2 changed files with 39 additions and 41 deletions

View File

@@ -146,30 +146,6 @@ jobs:
echo "⚠ No test script configured, skipping"
fi
test-without-dependencies:
name: Test Without Dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6.0.2
- name: Test action without installing dependencies
uses: ./
with:
install-node: 'true'
install-dependencies: 'false'
server-path: './test-server'
- name: Verify installation
run: |
test -d ./test-server || exit 1
node --version
# node_modules should not exist since we skipped dependency installation
if [ -d ./test-server/node_modules ]; then
echo "✗ Dependencies were installed when they shouldn't have been"
exit 1
fi
echo "✓ Installation without dependencies successful"
test-build-command:
name: Test Build Command
runs-on: ubuntu-latest

View File

@@ -51,6 +51,22 @@ inputs:
description: 'Custom script to run after installation'
required: false
default: ''
server-repository:
description: 'Repository to checkout for the server source'
required: false
default: 'Nodarx/server'
server-ref:
description: 'Branch, tag, or SHA to checkout for the server repository'
required: false
default: 'main'
github-server-url:
description: 'Git server base URL for checkout (e.g. https://git.ktrix.dev)'
required: false
default: 'https://git.ktrix.dev'
checkout-token:
description: 'Optional token for private/external repository checkout'
required: false
default: ''
outputs:
install-status:
@@ -93,22 +109,28 @@ runs:
echo "Install dependencies: ${{ inputs.install-dependencies }}"
echo "::endgroup::"
- name: Clone server repository
shell: bash
run: |
echo "::group::Cloning Nodarx server repository"
if [ -d "${{ inputs.server-path }}" ]; then
echo "Directory exists, pulling latest changes..."
cd "${{ inputs.server-path }}"
git pull --recurse-submodules || echo "::warning::Pull failed, continuing with existing code"
else
echo "Cloning repository..."
git clone --recurse-submodules --depth 1 https://git.ktrix.dev/Nodarx/server "${{ inputs.server-path }}"
fi
echo "Repository cloned/updated successfully"
echo "::endgroup::"
- name: Checkout server repository (public/no token)
if: inputs.checkout-token == ''
uses: actions/checkout@v4
with:
repository: ${{ inputs.server-repository }}
ref: ${{ inputs.server-ref }}
path: ${{ inputs.server-path }}
fetch-depth: 1
submodules: recursive
github-server-url: ${{ inputs.github-server-url }}
- name: Checkout server repository (with token)
if: inputs.checkout-token != ''
uses: actions/checkout@v4
with:
repository: ${{ inputs.server-repository }}
ref: ${{ inputs.server-ref }}
path: ${{ inputs.server-path }}
fetch-depth: 1
submodules: recursive
github-server-url: ${{ inputs.github-server-url }}
token: ${{ inputs.checkout-token }}
- name: Setup Node
if: inputs.install-node == 'true'
@@ -118,7 +140,7 @@ runs:
- name: Setup PHP
if: inputs.install-php == 'true'
uses: shivammathur/setup-php@v2.36.0
uses: shivammathur/setup-php@v2
with:
php-version: ${{ inputs.php-version }}
extensions: ${{ inputs.php-extensions }}