From 70cbf85efe5b349bd0ea0f8d5bcf905917252f8e Mon Sep 17 00:00:00 2001 From: jrfnl Date: Fri, 14 Oct 2022 22:59:34 +0200 Subject: [PATCH] GH Actions: fix use of deprecated `set-output` GitHub has deprecated the use of `set-output` (and `set-state`) in favour of new environment files. This commit updates the test workflows to avoid `set-output`. Refs: * https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ * https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#environment-files --- .github/workflows/tests.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index df51dda0..4d02aa7b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -105,20 +105,11 @@ jobs: - name: Check out code uses: actions/checkout@v3 - - name: Set coverage variable - id: set_cov - run: | - if [ ${{ matrix.coverage }} == "true" ]; then - echo '::set-output name=COV::xdebug' - else - echo '::set-output name=COV::none' - fi - - name: Set up PHP uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} - coverage: ${{ steps.set_cov.outputs.COV }} + coverage: ${{ matrix.coverage && 'xdebug' || 'none' }} ini-values: sendmail_path=/usr/sbin/sendmail -t -i, error_reporting=E_ALL, display_errors=On extensions: imap, mbstring, intl, ctype, filter, hash