From 5da05e87f4cd81ffa9d30dda5397ca28f09df0a2 Mon Sep 17 00:00:00 2001 From: Artem Henvald Date: Fri, 12 Jan 2024 11:34:15 +0200 Subject: [PATCH] Update ci.yaml --- .github/workflows/ci.yaml | 37 +++++++++++++++++++++++++++---------- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7a62b96..ba1249d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,7 +12,15 @@ jobs: name: "Composer Validate" steps: - name: 'Checkout Code' - uses: actions/checkout@v2 + uses: actions/checkout@v4 + + - name: 'Setup PHP' + uses: shivammathur/setup-php@v2 + with: + php-version: 8.1 + ini-values: memory_limit=-1 + coverage: none + tools: composer:v2 - name: 'Validate composer.json' run: composer validate --no-check-all --strict --no-check-lock @@ -23,7 +31,15 @@ jobs: name: "Composer Install" steps: - name: 'Checkout Code' - uses: actions/checkout@v2 + uses: actions/checkout@v4 + + - name: 'Setup PHP' + uses: shivammathur/setup-php@v2 + with: + php-version: 8.1 + ini-values: memory_limit=-1 + coverage: none + tools: composer:v2 - name: 'Install Dependencies' run: composer install --prefer-dist --no-progress --no-interaction @@ -36,7 +52,7 @@ jobs: fail-fast: false steps: - name: 'Checkout Code' - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: 'Setup PHP' uses: shivammathur/setup-php@v2 @@ -51,8 +67,8 @@ jobs: working-directory: './' - name: 'Run CodeSniffer' - run: ./vendor/bin/phpcs ./ -p --encoding=utf-8 --extensions=php --ignore="vendor|Tests|src|public" --standard=./vendor/escapestudios/symfony2-coding-standard/Symfony - + run: ./vendor/bin/phpcs ./ -p --encoding=utf-8 --extensions=php --ignore="vendor|Tests" --standard=./vendor/escapestudios/symfony2-coding-standard/Symfony + static-analysis: needs: composer-install runs-on: ubuntu-latest @@ -61,7 +77,7 @@ jobs: fail-fast: false steps: - name: 'Checkout Code' - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: 'Setup PHP' uses: shivammathur/setup-php@v2 @@ -88,10 +104,10 @@ jobs: php-version: - '8.1' symfony-version: - - '6.1' + - '6.4' steps: - name: 'Checkout Code' - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: 'Setup PHP' uses: shivammathur/setup-php@v2 @@ -118,7 +134,7 @@ jobs: fail-fast: false steps: - name: 'Checkout Code' - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: 'Setup PHP' uses: shivammathur/setup-php@v2 @@ -141,8 +157,9 @@ jobs: path: reports - name: 'Upload to Codecov' - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v3 with: files: ./coverage.xml fail_ci_if_error: true + flags: unittests verbose: true