From 8991d654af5d0eff72cfbb0e8678af458a35f139 Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Mon, 6 Mar 2023 09:37:09 -0500 Subject: [PATCH] CI: Update GitHub workflow --- .github/workflows/php.yml | 13 ++++++------- .github/workflows/php_cs.yml | 6 +++--- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 4ec0fa80cd..22475a5004 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -8,7 +8,7 @@ permissions: jobs: build: name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 strategy: fail-fast: false @@ -23,7 +23,6 @@ jobs: MYSQL_ALLOW_EMPTY_PASSWORD: false MYSQL_ROOT_PASSWORD: root MYSQL_DATABASE: chamilo - MYSQL_AUTHENTICATION_PLUGIN: mysql_native_password ports: - 3306/tcp options: >- @@ -33,7 +32,7 @@ jobs: --health-retries=3 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup apache run: | @@ -52,16 +51,16 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-versions }} - extensions: mbstring, xml, ctype, iconv, intl, pdo, pdo_mysql, dom, gd, json, soap, zip, bcmath + extensions: mbstring, xml, ctype, iconv, intl, pdo, pdo_mysql, mysqli, dom, gd, json, soap, zip, bcmath ini-values: post_max_size=256M, max_execution_time=600, memory_limit=4096M tools: composer:v2 - name: Get composer cache directory id: composer-cache-v1 - run: echo "::set-output name=dir::$(composer config cache-files-dir)" + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache composer dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ${{ steps.composer-cache-v1.outputs.dir }} # Use composer.json for key, if composer.lock is not committed. @@ -80,7 +79,7 @@ jobs: # - name: Get yarn cache directory # id: yarn-cache -# run: echo "::set-output name=dir::$(yarn cache dir)" +# run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT # # - name: Cache yarn dependencies # uses: actions/cache@v2 diff --git a/.github/workflows/php_cs.yml b/.github/workflows/php_cs.yml index 7d4decdff4..86a1e4d301 100644 --- a/.github/workflows/php_cs.yml +++ b/.github/workflows/php_cs.yml @@ -16,7 +16,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 2 @@ -29,10 +29,10 @@ jobs: - name: Get composer cache directory id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache composer downloads - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}