diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..d0b334d --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,5 @@ +{ + "name": "PHP", + "image": "mcr.microsoft.com/devcontainers/php", + "postCreateCommand": ".devcontainer/install-dependencies.sh" +} diff --git a/.devcontainer/install-dependencies.sh b/.devcontainer/install-dependencies.sh new file mode 100644 index 0000000..ce7a394 --- /dev/null +++ b/.devcontainer/install-dependencies.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +if [ -f "composer.json" ]; then + echo "Found composer.json in project root. Installing dependencies..." + composer install --no-interaction --ignore-platform-reqs + echo "✅ PHP dependencies installed successfully in project root." +else + echo "⚠️ No composer.json in project root. Searching for composer.json files in subdirectories..." + + find . -type f -name "composer.json" | while read composer_file; do + dir=$(dirname "$composer_file") + echo "Installing dependencies in $dir..." + (cd "$dir" && composer install --no-interaction --ignore-platform-reqs) + if [ $? -eq 0 ]; then + echo "✅ Dependencies installed successfully in $dir." + else + echo "❌ Failed to install dependencies in $dir." + fi + done +fi \ No newline at end of file diff --git a/.github/workflows/junie.yml b/.github/workflows/junie.yml new file mode 100644 index 0000000..0cd2beb --- /dev/null +++ b/.github/workflows/junie.yml @@ -0,0 +1,19 @@ +name: Junie +run-name: "Junie run ${{ inputs.run_id }}" +permissions: + contents: write +"on": + workflow_dispatch: + inputs: + run_id: + description: id of workflow process + required: true + workflow_params: + description: stringified params + required: true +jobs: + call-workflow-passing-data: + uses: jetbrains-junie/junie-workflows/.github/workflows/ej-issue.yml@main + with: + workflow_params: "${{ inputs.workflow_params }}" + junie_ide: PhpStorm