From a7fe1317d78031bf02b00da271fb79988148ef85 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 23 Aug 2024 21:53:51 +0300 Subject: [PATCH] updating CI tests --- .github/workflows/tests.yml | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 99368f5..c9427c6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,10 +16,10 @@ jobs: with: ref: ${{env.BRANCH}} - run: cp .env.dist .env - - uses: falti/dotenv-action@master + - uses: falti/dotenv-action@v1 id: dotenv - uses: docker/setup-buildx-action@v3 - - uses: docker/build-push-action@v5 + - uses: docker/build-push-action@v6 with: context: . file: ./Dockerfile @@ -34,6 +34,8 @@ jobs: - 8.3 steps: - uses: actions/checkout@v4 + with: + ref: ${{env.BRANCH}} - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} @@ -48,12 +50,14 @@ jobs: - 8.3 steps: - uses: actions/checkout@v4 + with: + ref: ${{env.BRANCH}} - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} tools: composer:v2 coverage: none - - uses: ramsey/composer-install@v2 + - uses: ramsey/composer-install@v3 with: composer-options: --optimize-autoloader - run: composer require-checker @@ -65,12 +69,14 @@ jobs: - 8.3 steps: - uses: actions/checkout@v4 + with: + ref: ${{env.BRANCH}} - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} tools: composer:v2 coverage: none - - uses: ramsey/composer-install@v2 + - uses: ramsey/composer-install@v3 with: composer-options: --optimize-autoloader - run: composer unused @@ -82,12 +88,14 @@ jobs: - 8.3 steps: - uses: actions/checkout@v4 + with: + ref: ${{env.BRANCH}} - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} tools: composer:v2 coverage: none - - uses: ramsey/composer-install@v2 + - uses: ramsey/composer-install@v3 with: composer-options: --optimize-autoloader - run: composer normalize --dry-run --diff --ansi @@ -99,12 +107,14 @@ jobs: - 8.3 steps: - uses: actions/checkout@v4 + with: + ref: ${{env.BRANCH}} - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} tools: composer:v2, cs2pr coverage: none - - uses: ramsey/composer-install@v2 + - uses: ramsey/composer-install@v3 with: composer-options: --optimize-autoloader - run: composer fixcs -- --dry-run --diff --format=checkstyle --ansi | cs2pr @@ -116,12 +126,14 @@ jobs: - 8.3 steps: - uses: actions/checkout@v4 + with: + ref: ${{env.BRANCH}} - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} tools: composer:v2 coverage: none - - uses: ramsey/composer-install@v2 + - uses: ramsey/composer-install@v3 with: composer-options: --optimize-autoloader - run: composer rector -- --dry-run @@ -133,12 +145,14 @@ jobs: - 8.3 steps: - uses: actions/checkout@v4 + with: + ref: ${{env.BRANCH}} - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} tools: composer:v2 coverage: none - - uses: ramsey/composer-install@v2 + - uses: ramsey/composer-install@v3 with: composer-options: --optimize-autoloader - run: composer psalm -- --php-version=${{ matrix.php }} --stats --output-format=github --shepherd @@ -150,12 +164,14 @@ jobs: - 8.3 steps: - uses: actions/checkout@v4 + with: + ref: ${{env.BRANCH}} - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} tools: composer:v2 coverage: xdebug - - uses: ramsey/composer-install@v2 + - uses: ramsey/composer-install@v3 with: composer-options: --optimize-autoloader # - run: composer test -- --colors=always --order-by=random --coverage-clover coverage.xml