diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1aae3a57..8ae54550 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,9 +25,9 @@ jobs: - name: Cache Composer dependencies id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} diff --git a/config/application.pantheon.php b/config/application.pantheon.php new file mode 100644 index 00000000..ae7adca1 --- /dev/null +++ b/config/application.pantheon.php @@ -0,0 +1,42 @@ +load(); if ( ! env( 'DATABASE_URL' ) ) { @@ -45,6 +45,11 @@ } } +/** + * Include Pantheon application settings. + */ +require_once __DIR__ . '/application.pantheon.php'; + /** * Set up our global environment constant and load its config first * Default: production @@ -74,7 +79,7 @@ /** * Pantheon modifications */ -if ( isset( $_ENV['PANTHEON_ENVIRONMENT'] ) && 'lando' !== $_ENV['PANTHEON_ENVIRONMENT'] ) { +if ( isset( $_ENV['PANTHEON_ENVIRONMENT'] ) && ! isset( $_ENV['LANDO'] ) ) { Config::define( 'DB_HOST', $_ENV['DB_HOST'] . ':' . $_ENV['DB_PORT'] ); } else { /** diff --git a/phpcs.xml b/phpcs.xml index 16bde090..55c0466f 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -38,9 +38,21 @@ config/application.php + + config/application.pantheon.php + + + config/application.pantheon.php + + + +