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