From 61e6d17e4facb1c7e07f792379ad4c8532499f96 Mon Sep 17 00:00:00 2001 From: MarioRadu Date: Thu, 2 May 2024 17:14:02 +0300 Subject: [PATCH] pre run script fix --- .github/workflows/continuous-integration.yml | 2 +- .github/workflows/docs-build.yml | 2 +- .laminas-ci/pre-run.sh | 8 +++----- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 2f02e70..26c5802 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -8,4 +8,4 @@ on: jobs: ci: - uses: laminas/workflow-continuous-integration/.github/workflows/continuous-integration.yml@1.x \ No newline at end of file + uses: laminas/workflow-continuous-integration/.github/workflows/continuous-integration.yml@1.x diff --git a/.github/workflows/docs-build.yml b/.github/workflows/docs-build.yml index 164e3d2..1a7aa24 100644 --- a/.github/workflows/docs-build.yml +++ b/.github/workflows/docs-build.yml @@ -13,4 +13,4 @@ jobs: uses: dotkernel/documentation-theme/github-actions/docs@main env: DEPLOY_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.laminas-ci/pre-run.sh b/.laminas-ci/pre-run.sh index eb8123b..f6351b8 100755 --- a/.laminas-ci/pre-run.sh +++ b/.laminas-ci/pre-run.sh @@ -2,16 +2,14 @@ JOB=$3 PHP_VERSION=$4 COMMAND=$(echo "${JOB}" | jq -r '.command') -echo "Running $COMMAND @@@@@@@@@@@@@@@" - -#apt-get install php8.2-sqlite3 -#apt-get install php8.3-sqlite3 +echo "Running $COMMAND" if [[ ${COMMAND} =~ phpunit ]];then - apt-get install php${PHP_VERSION}-sqlite3 + apt-get install php"${PHP_VERSION}"-sqlite3 cp config/autoload/local.php.dist config/autoload/local.php cp config/autoload/mail.local.php.dist config/autoload/mail.local.php cp config/autoload/local.test.php.dist config/autoload/local.test.php + fi