From 3a34c530b856a0c1184f28f3624f101cdedc5e8a Mon Sep 17 00:00:00 2001 From: Arkadiusz Kondas Date: Tue, 23 Jan 2024 09:17:32 +0100 Subject: [PATCH] Improve workflow --- .github/workflows/tests.yml | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8ecd884..7ef2337 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,6 +1,10 @@ name: build -on: [push,pull_request] +on: + push: + branches: + - master + pull_request: jobs: build: @@ -22,19 +26,8 @@ jobs: php-version: "${{ matrix.php-version }}" ini-values: memory_limit=-1 - - name: Get Composer Cache Directory - id: composer-cache - run: | - echo "::set-output name=dir::$(composer config cache-files-dir)" - - uses: actions/cache@v2 - with: - path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-${{ matrix.php-version }}-composer- - - - name: Install dependencies - run: composer install + - name: "Install composer dependencies" + uses: "ramsey/composer-install@v2" - name: Run test suite run: composer build