From c069f84a9abc1b6e68692fd9eb54c0d03e08597a Mon Sep 17 00:00:00 2001 From: Unay Santisteban Date: Thu, 29 Dec 2022 21:37:52 +0100 Subject: [PATCH] Bugfix/Workflow file format. --- .github/workflows/test.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5ff9b6f..319acea 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,17 +2,17 @@ name: Test on: push: - branches: - - main + branches: [ 'main' ] pull_request: - types: [ opened, synchronize, reopened ] + types: [ 'opened', 'synchronize', 'reopened' ] jobs: test: runs-on: ubuntu-latest + strategy: matrix: - php-version: [ 8.0, 8.1 ] + php-version: [ '8.0', '8.1 '] steps: - name: Checkout source code @@ -37,8 +37,9 @@ jobs: - name: Validate composer.json and composer.lock run: composer validate - - name: Install Dependencies - run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist + - name: Install dependencies + if: steps.composer-cache.outputs.cache-hit != 'true' + run: composer install --prefer-dist --no-progress --no-suggest - name: Execute Static Code analysis run: composer analyse