Skip to content

Commit

Permalink
Refactoring ci workflow code-test.
Browse files Browse the repository at this point in the history
  • Loading branch information
pMononoke committed Sep 15, 2023
1 parent d688482 commit 0825c62
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/code-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- php: '7.4'
coverage: true
dependency-version: [prefer-lowest, prefer-stable]
fail-fast: true
fail-fast: false

steps:
- name: Checkout
Expand All @@ -59,24 +59,27 @@ jobs:

- name: setup-php
id: setup-php
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@2.25.5
with:
php-version: ${{ matrix.php }}
extensions: ${{ env.PHP_EXTENSIONS }}
ini-values: date.timezone=Europe/Rome, memory_limit=-1
coverage: xdebug

- name: Get Composer Cache Directory
- name: Set Composer Cache Directory
if: ${{ vars.USE_COMPOSER_CACHE }}
id: composer-cache
#run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache dependencies
- name: Cache Composer dependencies
uses: actions/cache@v3
if: ${{ vars.USE_COMPOSER_CACHE }}
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-${{ matrix.php }}
key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-${{ matrix.php }}-composer-
- name: Install Composer dependencies
run: |
Expand Down

0 comments on commit 0825c62

Please sign in to comment.